joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a228
Capabilities:
Accept command line arguments

Disassembly:
push 0xc
mov eax, 0x4130f7
call fcn.00411e05
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x10]
xor ebx, ebx
push ecx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x10], 2
mov esi, eax
je 0x40a25a
xor eax, eax
inc eax
jmp 0x40a351
mov eax, dword [esi + 4]
mov ecx, str._terminate
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a288
test dx, dx
je 0x40a284
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a288
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a262
mov eax, ebx
jmp 0x40a28d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40a29b
call fcn.0040db64
jmp 0x40a351
push dword [esi + 4]
lea ecx, [ebp - 0x14]
call fcn.004038e5
mov dword [ebp - 4], ebx
mov edi, dword [0x41a51c]
test edi, edi
jne 0x40a2d7
push 0x1b0
call fcn.00410dcc
pop ecx
mov dword [ebp - 0x18], eax
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040a715
mov edi, eax
mov byte [ebp - 4], bl
mov dword [0x41a51c], edi
push ebx
lea ecx, [ebp - 0x14]
call fcn.00401a7c
push eax
mov ecx, edi
call fcn.0040aa42
test eax, eax
jne 0x40a2f2
test edi, edi
je 0x40a344
jmp 0x40a332
mov ecx, edi
cmp dword [edi + 0x5c], ebx
je 0x40a2fd
push 0x10
jmp 0x40a320
call fcn.0040ada5
cmp dword [edi + 0x48], ebx
je 0x40a325
push ecx
mov ecx, esp
push 0x414c10
call fcn.004038e5
push ecx
mov ecx, edi
call fcn.0040ad6c
push 0xe
mov ecx, edi
call fcn.0040abd2
mov ecx, edi
call fcn.0040ada5
mov ebx, dword [edi + 0x138]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x414370]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401572
mov eax, ebx
call fcn.00411dce
ret

Function at 0x40a357
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
xor esi, esi
push eax
push 0x28
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40a3be
push edi
lea eax, [ebp - 0x10]
xor edi, edi
push eax
push str.SeDebugPrivilege
inc edi
push esi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40a3bd
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
cmovne esi, edi
pop edi
cmp dword [ebp - 0x18], 0
je 0x40a3cd
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00410bc0
leave
ret
Function at 0x40aa42
Capabilities:
Check mutex on windows

Disassembly:
push 0x10
mov eax, 0x413189
call fcn.00411e05
mov edi, ecx
lea esi, [edi + 0x130]
push str.Unspecified_error___init.
mov ecx, esi
mov dword [ebp - 0x1c], esi
call fcn.00401a37
push dword [ebp + 8]
lea eax, [edi + 8]
mov ecx, eax
mov dword [ebp - 0x18], eax
call fcn.00404eb3
test eax, eax
je 0x40aabc
mov ecx, dword [edi + 0x12c]
sub ecx, 0x10
call fcn.00401b9c
add eax, 0x10
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea ecx, [ebp - 0x10]
push ebx
mov dword [ebp - 4], ebx
call fcn.00401a7c
push eax
push str.Error_reading_crash_info:__s
push esi
call fcn.00403bff
mov ecx, dword [ebp - 0x10]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401572
xor eax, eax
jmp 0x40ab81
push dword [ebp + 8]
lea esi, [edi + 0x1a8]
push 0x414e70
push esi
call fcn.00403bff
add esp, 0xc
call fcn.00401598
push eax
lea ecx, [ebp - 0x10]
call fcn.00401b24
xor ebx, ebx
mov dword [ebp - 4], 1
push ebx
mov ecx, esi
call fcn.00401a7c
push eax
lea eax, [ebp - 0x10]
push str.LocalCrashRptEvent__s
push eax
call fcn.00403bff
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [edi + 0x10]
lea ecx, [ebp - 0x14]
push str.RTLReading
push str.Settings
mov dword [edi + 0x1ac], eax
call fcn.00402d20
mov byte [ebp - 4], 2
push 0x415a74
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 0x10
test eax, eax
jne 0x40ab4d
push 1
call dword [sym.imp.USER32.dll_SetProcessDefaultLayout]
cmp dword [edi + 0x5c], ebx
jne 0x40ab89
push 1
mov ecx, edi
call fcn.0040abd2
xor ebx, ebx
mov eax, str.Success.
inc ebx
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.00401a37
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401572
lea ecx, [esi - 0x10]
call fcn.00401572
mov eax, ebx
call fcn.00411dce
ret 4
push 0x415a78
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40abaa
mov eax, str.Another_CrashSender.exe_already_tries_to_resend_recent_reports.
jmp 0x40ab63
mov eax, dword [edi + 0xfc]
sub eax, dword [edi + 0xf8]
jne 0x40abbf
mov eax, str.There_are_no_reports_for_us_to_send.
jmp 0x40ab63
mov ecx, dword [ebp - 0x18]
call fcn.00406c85
test eax, eax
jne 0x40ab5b
mov eax, str.Not_enough_time_elapsed_to_remind_user_about_recent_crash_reports.
jmp 0x40ab63

Function at 0x40abd2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 0x18c], eax
xor eax, eax
push eax
push eax
push esi
push 0x40ac10
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 0x140], eax
test eax, eax
pop esi
setne cl
mov eax, ecx
pop ebp
ret 4
Function at 0x40d36f
Capabilities:
Enumerate files on windows

Disassembly:
push 0x284
mov eax, 0x4136d6
call fcn.00411e39
mov dword [ebp - 0x264], ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x278], esi
call fcn.00401598
push eax
lea ecx, [ebp - 0x274]
call fcn.00401b24
xor edi, edi
lea eax, [ebp - 0x274]
mov dword [ebp - 4], edi
push dword [esi + 4]
push str.Looking_for_files_using_search_template:__s
push eax
call fcn.00403bff
mov eax, dword [ebp - 0x274]
add esp, 0xc
add eax, 0xfffffff0
push 1
push edi
push ecx
mov esi, esp
mov ecx, eax
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x270], eax
call fcn.00401b9c
mov ecx, dword [ebp - 0x264]
add eax, 0x10
add ecx, 0x148
mov dword [esi], eax
call fcn.00404074
mov esi, dword [ebp - 0x278]
lea eax, [ebp - 0x260]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
cmp eax, 0xffffffff
jne 0x40d43c
push 1
push edi
push ecx
mov ecx, esp
push str.Could_not_find_any_files_matching_the_search_template.
call fcn.004038e5
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx + 0x148]
call fcn.00404074
jmp 0x40d595
push 0x5c
lea ecx, [esi + 4]
call fcn.00403547
push eax
push edi
lea eax, [ebp - 0x26c]
push eax
lea ecx, [esi + 4]
call fcn.004034b5
mov edi, dword [ebp - 0x264]
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x268]
lea ecx, [edi + 0x148]
call fcn.00404129
test al, al
jne 0x40d57d
test byte [ebp - 0x260], 0x10
jne 0x40d567
push 0x414bd8
lea edx, [ebp - 0x26c]
lea ecx, [ebp - 0x268]
call fcn.004033ff
pop ecx
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x268]
call fcn.004037b5
lea ecx, [ebp - 0x290]
call fcn.004045f0
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x28c]
call fcn.00403848
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x290]
call fcn.00401a37
mov edi, dword [ebp - 0x278]
lea ecx, [ebp - 0x288]
lea eax, [edi + 8]
push eax
call fcn.00403848
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x284], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x280], eax
mov eax, dword [ebx + 4]
push ecx
cmp eax, dword [ebx + 8]
je 0x40d52a
mov ecx, eax
call fcn.00407fb6
add dword [ebx + 4], 0x18
jmp 0x40d532
push eax
mov ecx, ebx
call fcn.0040dd0e
mov ecx, dword [ebp - 0x264]
lea eax, [ebp - 0x290]
push eax
call fcn.0040ce85
lea ecx, [ebp - 0x290]
call fcn.0040632f
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00401572
mov edi, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d467
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.00401572
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x270]
call fcn.00401572
mov eax, edi
call fcn.00411de3
ret 8
Function at 0x40db64
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0x234
mov eax, 0x413797
call fcn.00411e39
call fcn.00401598
push eax
lea ecx, [ebp - 0x240]
call fcn.00401b24
and dword [ebp - 4], 0
lea eax, [ebp - 0x240]
push 0x57b
push str.CrashSender_d.exe
push eax
call fcn.00403bff
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov esi, dword [ebp - 0x240]
cmp eax, 1
jne 0x40dc29
jmp 0x40dc16
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40dc16
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x234], eax
je 0x40dc16
push dword [ebp - 0x234]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x40dbd2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.00401572
xor eax, eax
call fcn.00411de3
ret

Function at 0x40fb22
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040f9ea
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetc]
add esp, 0x10
cmp eax, 0xffffffff
jne 0x40fb5d
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
pop ecx
test eax, eax
je 0x40fb5d
push ebx
push ebx
jmp 0x40fbdb
push 2
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
cdq
push 0
push edi
mov ebx, eax
mov dword [ebp - 4], edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov edx, dword [ebp - 4]
mov ecx, ebx
and ecx, edx
add esp, 0x1c
cmp ecx, 0xffffffff
jne 0x40fb94
push 0
push 0
jmp 0x40fbdb
xor ecx, ecx
cmp edx, ecx
ja 0x40fbd9
cmp ebx, 0xffffffff
jae 0x40fbd9
mov eax, ebx
or eax, edx
jne 0x40fbab
push ecx
push ecx
push 0xd
jmp 0x40fbdd
lea eax, [ebx + 1]
push eax
call fcn.00411283
push edi
push ebx
push 1
push eax
mov dword [esi + 0x50], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x14
cmp eax, ebx
jne 0x40fb8e
mov eax, dword [esi + 0x50]
mov ecx, esi
mov byte [ebx + eax], 0
call fcn.0040fd01
jmp 0x40fbe6
push ecx
push ecx
push 5
push esi
call fcn.0040fc4f
add esp, 0x10
mov eax, dword [esi + 0x38]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40fe90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x40], 0
je 0x40feaf
push dword [ecx + 0x40]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
jmp 0x40feea
push esi
lea esi, [ecx + 0xd0]
mov eax, dword [esi + 0x1c]
mov ecx, esi
push edi
mov edi, dword [ebp + 0xc]
add eax, edi
push eax
call fcn.004109b2
mov ecx, dword [esi + 0x1c]
push edi
push dword [ebp + 8]
lea eax, [ecx + edi]
mov dword [esi + 0x1c], eax
mov eax, dword [esi]
lea esi, [ecx - 1]
add esi, eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esi + edi], 0
pop edi
pop esi
pop ebp
ret 8
Function at 0xeffb1c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xeffb26
pushal
call 0xeffb2c
pop ebp
sub ebp, 0x10
sub ebp, 0xaffb1c
jmp 0xeffb42
mov eax, 0xaffb1c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d2
mov edx, 0xa1be2117
xor byte [eax], dl
inc eax
dec ecx
jne 0xeffb59
jmp 0xeffb6c
pushfd
ficomp dword [esi + ebx*4 + 0x1717172b]
xchg esi, eax
salc
out dx, eax
pop ss
pop ss
pop ss
adc al, 0xda
scasd eax, dword es:[edi]
adc dword [edi], edx
pop ss
pop ss
lodsd eax, dword [esi]
aas
pop ss
pop ss
pop ss
loopne 0xeffb7d
adc al, 0xdf
pushfd
xchg esi, eax
sbb edx, dword [edi]
pop ss
pop ss
pop ss
adc al, 0xd2
lcall 0x3313, 0x9eeb3373
lcall 0x3313, 0x9eeb3373
jg 0xeffc15
xor byte [esi], 0x17
jg 0xeffb47
jb 0xeffb42
pop ss
push ss
cmp esi, dword [ebx]
jg 0xeffbff
add bl, dl
dec ebx
call dword [edx]
pop ss
pop ss
pop ss
invalid
aad 0x1b
pop ss
pushfd
wait
xor edx, dword [ebx]
pop ss
pop ss
pop ss
jg 0xeffc60
xor byte [esi], 0x17
jg 0xeffb92
jb 0xeffb8d
pop ss
push ss
cmp esi, dword [ebx]
lcall 0x331b, 0x9eeb3373
call dword [edx]
pop ss
pop ss
pop ss
invalid
call 0x66ef1b7c
pop ss
pop ss
pop ss
pushfd
stosb byte es:[edi], al
pop ds
pop ss
pop ss
pop ss
and al, 0xde
xchg esi, eax
in eax, 0xc9
aas
or dword [edx], ebx
xchg esi, eax
in eax, 0xc9
aas
or dword [edx], ebx
and al, 0xc5
xchg esp, eax
call dword [edx]
pop edi
sbb byte [ebx + 0x17171759], dl
sbb byte [edi + 0x1717175f], bl
jno 0xeffbe1
or ebp, dword [esi]
xchg edi, eax
in al, dx
call [eax]
xchg ebx, eax
or eax, 0x97171717
in al, dx
invalid
add dl, byte [edi]
pop ss
pop ss
push esi
invalid
Function at 0x100232f9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10023308
pop dword [ebp - 0x4c]
mov eax, 0x10023308
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x483d9
push 0
mov eax, 0x99c5a57a
add eax, 0x7641dba2
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x4756a919
add ecx, 0xb8a9b470
mov edx, eax
mov esi, 0xd390c1aa
sub esi, 0xc3784daa
add esi, dword [ebp - 0x4c]
mov ebx, 0xd344923d
add ebx, 0x160385da
add dword [ebp - 8], edx
mov edi, dword [esi]
xor edi, ebx
mov dword [edx], edi
sub dword [ebp - 4], ebx
add edx, 0x588c3a9
add edx, 0xfa773c5b
add esi, 0xbcf9f2c1
add esi, 0x43060d43
loop 0x10023362
add eax, 0x3b9ef0e6
add eax, 0xc4627811
xor ebx, ebx
add ebx, eax
add eax, 0xc8b8f6a1
sub eax, 0xc8b8f69c
mov ecx, 0x7920951b
sub ecx, 0x6920951b
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x10072480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1007251b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x100724d2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x100724d2
cmp esi, ebx
jge 0x100724d2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x10072515
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x10072515
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100783d8]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100783d8]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1007252d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x10072750
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb860]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176180], 0
mov eax, dword [ebp + 8]
je 0x10072778
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x10072792
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.100232f9
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10076730
leave
ret 4

Function at 0x10072960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100bb860]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176180], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x10072996
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x100729f5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.100232f9
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.100232f9
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.100232f9
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10076730
leave
ret 0x10
Function at 0x10072a10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb860]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176180], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x10072a3c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x10072a6d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x10072a6b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.100232f9
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x10072a6d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10076730
leave
ret 8
Function at 0x4023f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, ecx
test edx, edx
je 0x402414
push esi
mov esi, dword [ebp + 8]
mov ecx, eax
and ecx, 0xf
mov cl, byte [ecx + edi]
xor byte [eax + esi], cl
inc eax
cmp eax, edx
jb 0x402403
pop esi
pop edi
pop ebp
ret

Function at 0x402420
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x409eb8]
je 0x402486
mov edx, 1
mov dword [0x409eb8], eax
push ebx
mov dword [0x4094f8], eax
mov ebx, edx
mov edi, 4
lea esi, [edx + 7]
nop word [eax + eax]
mov eax, dword [edi + 0x4094f4]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
lea edx, [ebx + 1]
mov dword [edi + 0x4094f8], eax
mov ebx, edx
mov edi, esi
add esi, 4
cmp edx, 0x270
jl 0x402450
mov dword [0x409ebc], edx
pop ebx
jmp 0x402496
mov eax, dword [0x409ebc]
cmp eax, 0x270
jl 0x402550
xor eax, eax
nop dword [eax + eax]
mov edx, dword [eax*4 + 0x4094fc]
xor edx, dword [eax*4 + 0x4094f8]
and edx, 0x7fffffff
xor edx, dword [eax*4 + 0x4094f8]
mov ecx, edx
shr edx, 1
and ecx, 1
xor edx, dword [ecx*4 + 0x401134]
xor edx, dword [eax*4 + 0x409b2c]
mov dword [eax*4 + 0x4094f8], edx
inc eax
cmp eax, 0xe3
jl 0x4024a0
lea edi, [eax*4 + 0x4094f8]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
lea esi, [edi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [eax*4 + 0x401134]
xor eax, dword [esi - 0x390]
xor eax, ecx
mov dword [edi], eax
mov edi, esi
mov eax, dword [esi]
cmp edi, 0x409eb4
jl 0x4024e8
mov ecx, dword [0x409eb4]
xor ecx, dword [0x4094f8]
and ecx, 0x7fffffff
xor ecx, dword [0x409eb4]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x401134]
xor ecx, dword [0x409b28]
xor eax, eax
mov dword [0x409eb4], ecx
mov ecx, dword [eax*4 + 0x4094f8]
inc eax
mov dword [0x409ebc], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
pop edi
xor eax, ecx
pop esi
ret
Function at 0x4025b0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, edx
mov esi, ecx
mov eax, 0xaaaaaaab
lea ecx, [edi + 2]
mul ecx
shr edx, 1
lea eax, [edx*4 + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x4026ba
mov dword [ebp - 0xc], ecx
push ebx
mov ebx, ecx
test edi, edi
je 0x4026a9
lea eax, [ebp - 4]
sub eax, esi
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
xor edx, edx
lea ecx, [edx + 3]
nop word [eax + eax]
test edi, edi
je 0x40261a
mov al, byte [esi]
dec edi
inc edx
jmp 0x40261c
xor al, al
mov byte [ebx + esi], al
inc esi
sub ecx, 1
jne 0x402610
movzx ecx, byte [ebp - 4]
mov ebx, dword [ebp - 0xc]
mov eax, ecx
sub dword [ebp - 8], 3
and ecx, 3
shr eax, 2
shl ecx, 4
movzx eax, byte [eax + 0x401040]
mov byte [ebx], al
movzx eax, byte [ebp - 3]
mov dword [ebp - 0xc], eax
shr eax, 4
or eax, ecx
movzx eax, byte [eax + 0x401040]
mov byte [ebx + 1], al
cmp edx, 1
jbe 0x40268f
mov ecx, dword [ebp - 0xc]
movzx eax, byte [ebp - 2]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or eax, ecx
movzx eax, byte [eax + 0x401040]
mov byte [ebx + 2], al
cmp edx, 2
jbe 0x402693
movzx eax, byte [ebp - 2]
and eax, 0x3f
mov al, byte [eax + 0x401040]
jmp 0x402695
mov byte [ebx + 2], 0x3d
mov al, 0x3d
mov byte [ebx + 3], al
add ebx, 4
mov dword [ebp - 0xc], ebx
test edi, edi
jne 0x402602
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov byte [ebx], 0
test eax, eax
je 0x4026b7
sub ebx, ecx
mov dword [eax], ebx
mov eax, ecx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405310
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push esi
push edi
mov edi, ecx
test edx, edx
je 0x405330
xor esi, esi
mov al, byte [esi + edx]
mov byte [ebp + esi - 0x24], al
inc esi
cmp esi, 0x20
jb 0x405323
mov al, byte [ebp - 5]
lea ecx, [ebp - 0x164]
mov edx, dword [ebp + 8]
and al, 0x3f
and byte [ebp - 0x24], 0xf8
or al, 0x40
mov byte [ebp - 5], al
call fcn.00403200
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x204]
call fcn.00404320
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x1b4]
call fcn.004045d0
lea eax, [ebp - 0x1b4]
push eax
lea edx, [ebp - 0x204]
lea ecx, [ebp - 0x114]
call fcn.004027c0
add esp, 0xc
lea ecx, [ebp - 0x114]
call fcn.00402c90
lea ecx, [ebp - 0x114]
call fcn.00402d70
xor eax, eax
nop word [eax + eax]
mov cl, byte [ebp + eax - 0x114]
mov byte [ebp + eax - 0x7c], cl
inc eax
cmp eax, 0x50
jb 0x4053b0
lea edx, [ebp - 0x7c]
mov ecx, edi
call fcn.00403500
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4055d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor esi, esi
mov eax, dword [edi + 0x3c]
mov ebx, dword [eax + edi + 0x78]
mov eax, dword [ebx + edi + 0x20]
add ebx, edi
add eax, edi
mov dword [ebp - 4], eax
mov ecx, dword [ebx + 0x1c]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebx + 0x24]
add ecx, edi
mov dword [ebp - 0xc], ecx
cmp dword [ebx + 0x18], esi
jbe 0x405624
mov eax, dword [eax + esi*4]
add eax, edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40562d
mov eax, dword [ebp - 4]
inc esi
mov edx, dword [ebp - 8]
cmp esi, dword [ebx + 0x18]
jb 0x405607
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret