joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e446
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
push 0x78e
xor ebx, ebx
push ebx
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov edi, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x413d50
push 0x80000001
call edi
push esi
call dword [sym.imp.kernel32.dll_LocalFree]
push 0x413d5c
push 1
push ebx
push ebx
mov ebx, dword [sym.imp.kernel32.dll_CreateSemaphoreA]
call ebx
xor esi, esi
push esi
push 1
push eax
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
lea eax, [ebp - 0x148]
push eax
push 0x413d68
call dword [sym.imp.kernel32.dll_FindFirstFileA]
push eax
call dword [sym.imp.kernel32.dll_pd_3JD9_w_8]
push 0x413d74
push esi
push esi
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40e4ec
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x413d80
push 0x80000001
call edi
push esi
call dword [0x411020]
push 0x413d8c
xor edi, edi
push edi
push 1
push edi
call dword [sym.imp.kernel32.dll____TEg_Td:kJ__FfFpIDL_]
mov esi, eax
push esi
call dword [sym.imp.kernel32.dll_SetEvent]
push esi
call dword [sym.imp.kernel32.dll_ResetEvent]
push edi
push 0xb42
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
push eax
call dword [sym.imp.kernel32.dll_]
push 0x413d98
push 1
push edi
call dword [sym.imp.kernel32.dll_CreateWaitableTimerA]
mov edi, dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov esi, eax
push 0x413da8
call edi
push esi
call dword [sym.imp.kernel32.dll_CancelWaitableTimer]
push 0x413db4
push 1
xor esi, esi
push esi
push esi
call ebx
push 0x413dc4
call edi
mov ecx, dword [0x415170]
mov edi, 0x413dd0
push edi
push esi
push 0x1f0001
call ecx
test eax, eax
jne 0x40e584
push edi
push esi
push esi
call dword [0x415108]
xor eax, eax
inc eax
jmp 0x40e586
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e58b
Capabilities:
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x5bf
xor esi, esi
push esi
call dword [sym.imp.kernel32.dll_LocalAlloc]
push eax
call dword [sym.imp.kernel32.dll_LocalFree]
mov ebx, dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 0x413de8
call ebx
push esi
push 0x2f3
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov esi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
call dword [sym.imp.kernel32.dll_]
push 0x413df4
xor edi, edi
xor esi, esi
inc edi
push edi
push esi
call dword [sym.imp.kernel32.dll_CreateWaitableTimerA]
push eax
call dword [sym.imp.kernel32.dll_CancelWaitableTimer]
push 0x413e04
push esi
push edi
push esi
call dword [sym.imp.kernel32.dll____TEg_Td:kJ__FfFpIDL_]
mov esi, eax
push esi
call dword [sym.imp.kernel32.dll_SetEvent]
push esi
call dword [sym.imp.kernel32.dll_ResetEvent]
push 0x413e10
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40e639
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
call dword [0x411020]
push 0x413e1c
call ebx
jmp 0x40e649
push 0x413e28
push 0x413e34
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
push 0x413e40
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.kernel32.dll_CreateWaitableTimerA]
mov esi, dword [0x415128]
lea eax, [ebp - 8]
push eax
push 8
mov dword [ebp - 4], ebx
call dword [0x415048]
push eax
call esi
test eax, eax
je 0x40e6f0
mov eax, dword [0x415030]
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push ebx
push edi
push dword [ebp - 8]
call eax
test eax, eax
jne 0x40e696
call dword [0x4150b8]
cmp eax, 0x7a
jne 0x40e6f0
push dword [ebp - 4]
mov eax, dword [0x415098]
push 0x40
call eax
mov ecx, dword [0x415030]
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
push dword [ebp - 8]
call ecx
test eax, eax
je 0x40e6f0
mov eax, dword [0x41505c]
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], ebx
push dword [esi]
call eax
test eax, eax
je 0x40e6f0
push dword [ebp - 0xc]
mov eax, dword [0x41511c]
push dword [0x415580]
call eax
test eax, eax
push esi
cmovne edi, ebx
call dword [0x4150e0]
mov eax, edi
jmp 0x40e6f2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e6f7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
push ebx
push esi
push 0x413e50
xor esi, esi
mov ebx, ecx
push esi
push esi
call dword [sym.imp.kernel32.dll_CreateMutexA]
test eax, eax
je 0x40e720
push eax
call dword [0x411020]
jmp 0x40e731
call dword [sym.imp.kernel32.dll_GetLastError]
push 0x413e5c
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 0x413e68
push 1
push esi
push esi
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
push esi
push 1
push eax
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
test eax, eax
jne 0x40e768
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x413e78
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x148]
push eax
push 0x413e84
call dword [sym.imp.kernel32.dll_FindFirstFileA]
push eax
call dword [sym.imp.kernel32.dll_pd_3JD9_w_8]
push 0x413e90
push esi
push 1
push esi
call dword [sym.imp.kernel32.dll____TEg_Td:kJ__FfFpIDL_]
mov esi, eax
push esi
call dword [sym.imp.kernel32.dll_SetEvent]
push esi
call dword [sym.imp.kernel32.dll_ResetEvent]
push 5
pop esi
call dword [sym.imp.kernel32.dll_GetLastError]
sub esi, 1
jne 0x40e7a3
push 0x413e9c
push 1
push esi
call dword [sym.imp.kernel32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40e7c7
push eax
call dword [sym.imp.kernel32.dll_CancelWaitableTimer]
mov eax, dword [0x415020]
lea ecx, [ebp - 0x398]
push ecx
push ebx
call eax
xor ecx, ecx
cmp eax, 0xffffffff
pop esi
setne cl
mov eax, ecx
pop ebx
leave
ret
Function at 0x40ef56
Capabilities:
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0xe99
xor edi, edi
mov dword [ebp - 8], edx
push edi
mov dword [ebp - 4], ecx
call dword [sym.imp.kernel32.dll_LocalAlloc]
push eax
call dword [sym.imp.kernel32.dll_LocalFree]
mov ebx, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
lea eax, [ebp - 0xc]
push eax
push 0x20019
push edi
push 0x4140d0
push 0x80000001
call ebx
push edi
push 0x546
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
push eax
call dword [sym.imp.kernel32.dll_]
mov esi, dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 0x4140dc
call esi
push 0x4140e8
push 1
push edi
call dword [sym.imp.kernel32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40efde
push eax
call dword [sym.imp.kernel32.dll_CancelWaitableTimer]
push 0x4140f8
call esi
jmp 0x40eff4
lea eax, [ebp - 0x10]
push eax
push 0x20019
push edi
push 0x414104
push 0x80000001
call ebx
push 0x414110
push edi
push 1
push edi
call dword [sym.imp.kernel32.dll____TEg_Td:kJ__FfFpIDL_]
mov esi, eax
push esi
call dword [sym.imp.kernel32.dll_SetEvent]
push esi
call dword [sym.imp.kernel32.dll_ResetEvent]
mov ebx, dword [sym.imp.kernel32.dll_CreateSemaphoreA]
push 0x41411c
push 1
push edi
push edi
call ebx
push edi
mov edi, dword [sym.imp.kernel32.dll_ReleaseSemaphore]
push 1
push eax
call edi
push 0x414128
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 0x414134
push 1
push 0
call dword [sym.imp.kernel32.dll_CreateWaitableTimerA]
push 0x414144
push 0x414150
mov esi, eax
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
push esi
call dword [sym.imp.kernel32.dll_CancelWaitableTimer]
lea eax, [ebp - 0x14]
xor esi, esi
push eax
push 0x20019
push esi
push 0x41415c
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push 0x414168
push 1
push esi
push esi
call ebx
push esi
push 1
push eax
call edi
mov ebx, dword [ebp - 4]
mov eax, dword [0x415090]
mov esi, dword [0x41504c]
push ebx
call eax
lea eax, [eax*2 + 0x80]
push eax
push 0x40
call esi
mov ecx, dword [ebp + 8]
mov esi, eax
mov edi, dword [ebp + 0xc]
cmp ecx, edi
jge 0x40f0ca
mov edx, esi
mov ax, word [ebx + ecx*2]
inc ecx
mov word [edx], ax
lea edx, [edx + 2]
cmp ecx, edi
jl 0x40f0bb
mov ecx, dword [0x415144]
xor eax, eax
mov word [esi + edi*2 + 2], ax
mov edi, dword [ebp - 8]
push esi
push dword [edi]
call ecx
mov dword [edi], eax
test esi, esi
je 0x40f0ec
push esi
call dword [0x4150cc]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x40f15f
Capabilities:
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x41519c]
push ebx
push esi
push edi
push ecx
mov dword [ebp - 8], ecx
call eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x150]
push eax
push 0x414178
call dword [sym.imp.kernel32.dll_FindFirstFileA]
push eax
call dword [sym.imp.kernel32.dll_pd_3JD9_w_8]
push 0x414184
xor edi, edi
push edi
push edi
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov ebx, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
je 0x40f1cc
lea eax, [ebp - 0xc]
push eax
push 0x20019
push edi
push 0x414190
push 0x80000001
call ebx
push esi
call dword [0x411020]
jmp 0x40f1dc
push 0x41419c
push 0x4141a8
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
call edi
push 0x4141b4
push 1
xor esi, esi
push esi
push esi
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
push esi
push 1
push eax
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
push 4
pop esi
call edi
sub esi, 1
jne 0x40f202
push 0xe9f
push esi
call dword [sym.imp.kernel32.dll_LocalAlloc]
push eax
call dword [sym.imp.kernel32.dll_LocalFree]
push 0x4141c4
push 1
push esi
push esi
mov esi, dword [sym.imp.kernel32.dll_CreateSemaphoreA]
call esi
push 0
push 1
push eax
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
push 0x4141d0
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x4141dc
push 0x80000001
call ebx
mov eax, dword [ebp - 4]
mov ecx, dword [0x41504c]
lea eax, [eax*2 + 0x10]
push eax
push 0x40
call ecx
push dword [ebp - 4]
mov ebx, eax
push ebx
push 0xffffffffffffffff
push dword [ebp - 8]
push 0
push 0xfde9
call dword [0x4150b0]
push 0x4141e8
push 1
push 0
call dword [sym.imp.kernel32.dll_CreateWaitableTimerA]
push eax
call dword [sym.imp.kernel32.dll_CancelWaitableTimer]
lea eax, [ebp - 0x290]
push eax
push 0x4141f8
call dword [sym.imp.kernel32.dll_FindFirstFileA]
push eax
call dword [sym.imp.kernel32.dll_pd_3JD9_w_8]
push 0x414204
push 1
push 0
push 0
call esi
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x414214
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push 0
push 1
push esi
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
test eax, eax
je 0x40f2f1
call edi
push 0x414220
xor edi, edi
push edi
push 1
push edi
call dword [sym.imp.kernel32.dll____TEg_Td:kJ__FfFpIDL_]
mov esi, eax
push esi
call dword [sym.imp.kernel32.dll_SetEvent]
push esi
call dword [sym.imp.kernel32.dll_ResetEvent]
push 0x27e
push edi
call dword [sym.imp.kernel32.dll_LocalAlloc]
push eax
call dword [sym.imp.kernel32.dll_LocalFree]
push 0x41422c
push 1
push edi
call dword [sym.imp.kernel32.dll_CreateWaitableTimerA]
mov eax, dword [ebp - 4]
xor ecx, ecx
pop edi
pop esi
mov word [ebx + eax*2], cx
mov eax, ebx
pop ebx
leave
ret
Function at 0x40f343
Capabilities:
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
push edi
mov edi, dword [0x415090]
mov eax, edx
mov ebx, ecx
mov dword [ebp - 0xc], eax
push eax
mov dword [ebp - 0x10], ebx
call edi
push ebx
mov esi, eax
call edi
mov ecx, dword [0x41504c]
sub eax, 0xffffff80
add esi, eax
mov dword [ebp - 8], esi
lea eax, [esi + esi]
push eax
push 0x40
call ecx
push ebx
mov edx, esi
mov dword [ebp - 4], eax
mov ecx, eax
call fcn.00401fb6
mov ebx, dword [sym.imp.kernel32.dll_CreateSemaphoreA]
xor edi, edi
push 0x41423c
push 1
push edi
push edi
call ebx
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push 0x20019
push edi
push 0x41424c
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push edi
push 1
push esi
mov esi, dword [sym.imp.kernel32.dll_ReleaseSemaphore]
call esi
test eax, eax
je 0x40f3d1
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x40f3dc
push 0x414258
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
lea eax, [ebp - 0x158]
push eax
push 0x414264
call dword [sym.imp.kernel32.dll_FindFirstFileA]
push eax
call dword [sym.imp.kernel32.dll_pd_3JD9_w_8]
push 0x414270
push 1
push edi
push edi
call ebx
push edi
push 1
push eax
call esi
push 0x41427c
push edi
push 1
push edi
call dword [sym.imp.kernel32.dll____TEg_Td:kJ__FfFpIDL_]
mov ebx, dword [sym.imp.kernel32.dll_SetEvent]
mov esi, eax
push esi
call ebx
mov edi, dword [sym.imp.kernel32.dll_ResetEvent]
push esi
call edi
push dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.00401fe3
push 0x414288
push 1
xor esi, esi
push esi
push esi
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
push esi
push 1
push eax
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
call dword [sym.imp.kernel32.dll_GetLastError]
push 0x414294
push esi
push 1
push esi
call dword [sym.imp.kernel32.dll____TEg_Td:kJ__FfFpIDL_]
mov esi, eax
push esi
call ebx
push esi
call edi
xor edi, edi
push edi
push 0x467
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov ebx, dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
call ebx
push esi
call dword [sym.imp.kernel32.dll_]
push 0x4142a0
push edi
push edi
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40f4c0
push 0x4142ac
push 0x4142b8
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
push esi
call dword [0x411020]
call ebx
push 0x906
push edi
call dword [sym.imp.kernel32.dll_LocalAlloc]
push eax
call dword [sym.imp.kernel32.dll_LocalFree]
push 0x4142c4
push 1
push edi
call dword [sym.imp.kernel32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40f508
push eax
call dword [sym.imp.kernel32.dll_CancelWaitableTimer]
lea eax, [ebp - 8]
push eax
push 0x20019
push edi
push 0x4142d4
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
jmp 0x40f513
push 0x4142e0
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push dword [ebp - 0x10]
call dword [0x4150e0]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f789
Capabilities:
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
mov esi, dword [sym.imp.kernel32.dll_CreateWaitableTimerA]
push edi
push 0x4143dc
push 1
xor edi, edi
push edi
call esi
mov ebx, dword [sym.imp.kernel32.dll_CancelWaitableTimer]
test eax, eax
je 0x40f7bf
push eax
call ebx
push 0x4143ec
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 0x4143f8
push 1
push edi
call esi
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push 0x20019
push edi
push 0x414408
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push esi
call ebx
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
call edi
push 0x414414
push 1
xor esi, esi
push esi
push esi
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
push esi
push 1
push eax
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
test eax, eax
jne 0x40f811
call edi
push 0xa49
push esi
call dword [sym.imp.kernel32.dll_LocalAlloc]
push 0x414424
mov esi, eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.kernel32.dll_LocalFree]
mov eax, dword [0x41504c]
push 0x208
push 0x40
call eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x158]
push eax
push 0x414430
mov dword [ebp - 8], 0x104
mov dword [ebp - 0x10], 1
call dword [sym.imp.kernel32.dll_FindFirstFileA]
push eax
call dword [sym.imp.kernel32.dll_pd_3JD9_w_8]
push 0x41443c
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40f894
call edi
push esi
call dword [0x411020]
push 0x414448
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
jmp 0x40f8a4
push 0x414454
push 0x414460
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
push 0x41446c
push 1
xor esi, esi
push esi
call dword [sym.imp.kernel32.dll_CreateWaitableTimerA]
test eax, eax
je 0x40f8bd
push eax
call ebx
call edi
push 0xf31
push esi
call dword [sym.imp.kernel32.dll_LocalAlloc]
push eax
call dword [sym.imp.kernel32.dll_LocalFree]
lea eax, [ebp - 0x18]
push eax
push 0x20019
push esi
push 0x41447c
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push 0x414488
push 1
push esi
push esi
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
mov eax, dword [0x4150a0]
lea ecx, [ebp - 4]
push ecx
push 0x20119
push esi
push dword [0x4153a0]
push 0x80000002
call eax
mov ebx, dword [ebp - 0xc]
mov esi, eax
mov ecx, dword [0x4150d4]
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
push dword [0x4152d0]
push dword [ebp - 4]
call ecx
test esi, esi
jne 0x40f93e
test eax, eax
je 0x40f947
push dword [ebp - 4]
call dword [0x415068]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x406fe0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4620eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045a386
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407062
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00454d9b
mov eax, dword [eax]
push 0x47bb94
push eax
call fcn.004479fa
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045a611
test bl, bl
je 0x407062
push 0x47bb94
lea ecx, [esp + 0xc]
call fcn.0045a9a1
push 0x47bba0
lea ecx, [esp + 0xc]
call fcn.0045a9a1
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40709e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045a611
jmp 0x407169
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x407122
lea edx, [esp + 0x7c]
push 0x47bb9c
push edx
call fcn.004479fa
add esp, 8
test eax, eax
je 0x407122
lea eax, [esp + 0x7c]
push 0x47bb98
push eax
call fcn.004479fa
add esp, 8
test eax, eax
je 0x407122
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4070b2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045a611
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x407980
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4079e2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4079f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46216b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4825b8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x407b28
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x407a56
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045a611
xor eax, eax
jmp 0x407b9f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045a74e
push esi
lea ecx, [esp + 0xc]
call fcn.0045a9dd
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x47bbdc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x407b7d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.00407980
test eax, eax
jne 0x407b7d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x80000000
mov ecx, edi
call fcn.00407980
test eax, eax
jne 0x407b7d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.00447e90
mov esi, eax
add esp, 8
test esi, esi
jne 0x407b5c
lea ecx, [esp + 0x14]
push 0x47bbb4
push ecx
call fcn.00447e10
mov esi, eax
add esp, 8
test esi, esi
jne 0x407b5c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x407b5f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045a6fe
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x407a6e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045a611
xor eax, eax
jmp 0x407b9f
mov byte [esi], 0
push 0x47bbb0
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0045a611
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x41a7b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4630a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0041b330
lea edx, [esp + 0x18]
push eax
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x41a859
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0041a440
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push edi
lea ecx, [esp + 0x4c]
call fcn.0045e12a
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.00430760
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.0045e19c
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14