joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4106a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp edx, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x9e3779b9
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov ebx, edi
jb 0x4107be
mov eax, 0xaaaaaaab
mul edx
shr edx, 3
mov dword [ebp + 8], edx
xor edx, edx
mov dl, byte [ecx + 6]
xor eax, eax
mov al, byte [ecx + 7]
shl eax, 8
add eax, edx
xor edx, edx
mov dl, byte [ecx + 5]
shl eax, 8
add eax, edx
xor edx, edx
mov dl, byte [ecx + 4]
shl eax, 8
add edx, edi
lea edi, [edx + eax]
xor edx, edx
mov dl, byte [ecx + 0xa]
xor eax, eax
mov al, byte [ecx + 0xb]
shl eax, 8
add eax, edx
xor edx, edx
mov dl, byte [ecx + 9]
shl eax, 8
add eax, edx
xor edx, edx
mov dl, byte [ecx + 8]
shl eax, 8
add edx, esi
lea esi, [edx + eax]
xor edx, edx
mov dl, byte [ecx + 2]
xor eax, eax
mov al, byte [ecx + 3]
shl eax, 8
add eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
shl eax, 8
add eax, edx
xor edx, edx
mov dl, byte [ecx]
shl eax, 8
add eax, edx
sub eax, esi
sub eax, edi
mov edx, esi
shr edx, 0xd
add eax, ebx
xor eax, edx
sub edi, esi
sub edi, eax
mov edx, eax
shl edx, 8
xor edi, edx
sub esi, edi
sub esi, eax
mov edx, edi
shr edx, 0xd
xor esi, edx
sub eax, esi
sub eax, edi
mov edx, esi
shr edx, 0xc
xor eax, edx
sub edi, esi
mov edx, eax
shl edx, 0x10
sub edi, eax
xor edi, edx
sub esi, edi
sub esi, eax
mov edx, edi
shr edx, 5
xor esi, edx
sub eax, esi
mov edx, esi
sub eax, edi
shr edx, 3
xor eax, edx
mov ebx, eax
sub edi, esi
shl eax, 0xa
sub edi, ebx
xor edi, eax
mov eax, dword [ebp + 8]
sub esi, edi
mov edx, edi
shr edx, 0xf
sub esi, ebx
xor esi, edx
mov edx, dword [ebp - 4]
sub edx, 0xc
add ecx, 0xc
dec eax
mov dword [ebp - 4], edx
mov dword [ebp + 8], eax
jne 0x4106cf
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add esi, edx
dec eax
cmp eax, 0xa
ja case.default.0x4107c9
jmp dword [eax*4 + 0x4108a4]
xor edx, edx
mov dl, byte [ecx + 0xa]
shl edx, 0x18
add esi, edx
xor eax, eax
mov al, byte [ecx + 9]
shl eax, 0x10
add esi, eax
xor edx, edx
mov dl, byte [ecx + 8]
shl edx, 8
add esi, edx
xor eax, eax
mov al, byte [ecx + 7]
shl eax, 0x18
add edi, eax
xor edx, edx
mov dl, byte [ecx + 6]
shl edx, 0x10
add edi, edx
xor eax, eax
mov al, byte [ecx + 5]
shl eax, 8
add edi, eax
xor edx, edx
mov dl, byte [ecx + 4]
add edi, edx
xor eax, eax
mov al, byte [ecx + 3]
shl eax, 0x18
add ebx, eax
xor edx, edx
mov dl, byte [ecx + 2]
shl edx, 0x10
add ebx, edx
xor eax, eax
mov al, byte [ecx + 1]
shl eax, 8
add ebx, eax
xor edx, edx
mov dl, byte [ecx]
add ebx, edx
sub ebx, esi
sub ebx, edi
sub edi, esi
mov eax, esi
shr eax, 0xd
xor ebx, eax
sub edi, ebx
mov ecx, ebx
shl ecx, 8
xor edi, ecx
sub esi, edi
sub esi, ebx
mov edx, edi
shr edx, 0xd
xor esi, edx
sub ebx, esi
sub ebx, edi
sub edi, esi
mov eax, esi
shr eax, 0xc
xor ebx, eax
sub edi, ebx
mov ecx, ebx
shl ecx, 0x10
xor edi, ecx
sub esi, edi
mov edx, edi
sub esi, ebx
shr edx, 5
xor esi, edx
mov eax, esi
sub ebx, eax
sub ebx, edi
mov ecx, eax
sub edi, eax
shr ecx, 3
xor ebx, ecx
sub edi, ebx
mov edx, ebx
shl edx, 0xa
xor edi, edx
sub eax, edi
sub eax, ebx
shr edi, 0xf
xor eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4116e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4116f7
mov eax, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41170d
cmp eax, 5
je 0x41170d
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41171d
xor eax, eax
pop esi
ret
and eax, 0xff
shr eax, 4
and eax, 1
pop esi
ret

Function at 0x411890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov dword [ebp - 0xc], ecx
xor eax, eax
push esi
push edi
mov ebx, edx
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea eax, [edi + edi + 4]
add eax, 3
and eax, 0xfffffffc
mov dword [ebp - 8], ebx
call fcn.0040df70
mov ecx, esp
xor esi, esi
test edi, edi
mov byte [ecx], 0xd
mov byte [ecx + 1], 0xa
mov eax, 2
mov byte [ebp - 1], 0
jbe 0x4118ff
jmp 0x4118db
mov ebx, dword [ebp - 8]
mov dl, byte [esi + ebx]
cmp dl, 0xa
jne 0x4118ee
cmp byte [ebp - 1], 0xd
je 0x4118ee
mov byte [eax + ecx], 0xd
inc eax
mov byte [eax + ecx], dl
inc eax
inc esi
cmp esi, edi
mov byte [ebp - 1], dl
jb 0x4118d8
cmp dl, 0xa
je 0x411909
mov byte [eax + ecx], 0xd
inc eax
mov byte [eax + ecx], 0xa
inc eax
push 0
lea edx, [ebp - 0x10]
push edx
push eax
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412120
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
mov eax, dword [0x45ea60]
test eax, eax
jne 0x412152
push 0x45ea64
push 0
push str.Debug_Memory
push str.Internal
mov dword [0x45ea60], 1
call fcn.004186f0
mov eax, dword [0x45ea64]
test eax, eax
je 0x4121fd
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41218b
cmp byte [eax], 0
je 0x41218b
push eax
mov eax, dword [ebp + 8]
push eax
push str._s___s_
lea ecx, [ebp - 0x100]
push pe_nt_image_headers32
push ecx
call fcn.00410450
add esp, 0x14
jmp 0x4121a8
mov edx, dword [ebp + 8]
push edx
push 0x457324
lea eax, [ebp - 0x100]
push pe_nt_image_headers32
push eax
call fcn.00410450
add esp, 0x10
mov eax, dword [0x45eb9c]
test eax, eax
jne 0x4121d0
push 1
push 1
push 0
push 0xfffffffffffffffd
lea ecx, [ebp - 0x100]
push ecx
push 0x8510007f
call fcn.00410d60
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x100]
push edx
push str.Storm_Error_:_handle_never_released_____s_n
lea eax, [ebp - 0x1c8]
push 0xc8
push eax
call fcn.00410450
add esp, 0x10
lea ecx, [ebp - 0x1c8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret 8

Function at 0x412e80
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x45ea9c]
test eax, eax
jne 0x412ec2
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x45ea6c
push 0
push 0
push 0x412ed0
push 0
push 0
mov dword [0x45eaa8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 1
push eax
mov dword [0x45ea9c], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
ret
Function at 0x413e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
shr edx, 2
push esi
mov esi, edx
dec edx
test esi, esi
mov eax, 0xeeeeeeee
je 0x413e94
push ebx
push edi
lea edi, [edx + 1]
mov edx, dword [ebp + 8]
mov ebx, dword [0x45eaec]
mov esi, edx
and esi, 0xff
add eax, dword [ebx + esi*4 + 0x1000]
mov ebx, dword [ecx]
lea esi, [eax + edx]
xor ebx, esi
mov dword [ecx], ebx
mov esi, ebx
mov ebx, eax
shl ebx, 5
add esi, ebx
lea eax, [eax + esi + 3]
mov esi, edx
xor esi, 0x7ff
shl esi, 0x15
add esi, 0x11111111
shr edx, 0xb
add ecx, 4
or edx, esi
dec edi
jne 0x413e4b
pop edi
pop ebx
pop esi
pop ebp
ret 4

Function at 0x414040
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 0
push 0x20000000
push 3
push 0
push 1
push 0x80000000
push edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x414073
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push 0
mov esi, edi
and esi, 0xfff
push 0x796
lea ebx, [esi + eax + 0xfff]
push str.E:ProjectsLegacyStormSourceSFile.cpp
and ebx, 0xfffff000
push ebx
mov dword [ebp - 0xc], 0
call fcn.0040ff20
push 0
push 0
sub edi, esi
push edi
mov edi, dword [ebp - 4]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4140ff
push 0
lea ecx, [ebp - 0x10]
push ecx
push ebx
mov ebx, dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414102
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, ecx
shr ecx, 2
add esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 4]
mov dword [eax], ecx
mov dword [ebp - 0xc], 1
jmp 0x414102
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x414118
push 0
push 0x7a8
push str.E:ProjectsLegacyStormSourceSFile.cpp
push ebx
call fcn.00410070
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415520
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
mov dword [ebp - 4], edx
mov ebx, 0x7fed7fed
mov esi, 0xeeeeeeee
je 0x415584
mov al, byte [edi]
test al, al
je 0x415584
movsx eax, al
push eax
inc edi
call dword [sym.imp.MSVCRT.dll_toupper]
and eax, 0xff
add esp, 4
cmp eax, 0x2f
jne 0x41555d
mov eax, 0x5c
mov ecx, dword [ebp - 4]
shl ecx, 8
lea edx, [esi + ebx]
mov ebx, dword [0x45eaec]
add ecx, eax
mov ebx, dword [ebx + ecx*4]
mov ecx, esi
shl ecx, 5
add eax, ecx
xor ebx, edx
add esi, eax
test edi, edi
lea esi, [esi + ebx + 3]
jne 0x41553a
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416540
Capabilities:
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
not eax
shr eax, 4
and eax, 1
ret
Function at 0x4184d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45ebb8]
test eax, eax
push esi
mov esi, ecx
jne 0x418523
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4185ab
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
push edx
mov edx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x41859d
push 0
push 0
push 0x7fffffff
push edx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00418f20
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x20c]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4185ab
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
push 0
push 0
push 0x7fffffff
push ecx
push 0x104
lea edx, [ebp - 0x20c]
push edx
mov dword [esi], eax
call fcn.00418f20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push esi
push eax
mov eax, dword [ebp - 4]
push ecx
push 0
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x418800
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov edi, edx
push eax
mov edx, ebx
call fcn.00418350
mov eax, dword [0x45ebb8]
test eax, eax
jne 0x418863
lea ecx, [ebp - 4]
push ecx
mov ecx, ebx
and cl, 4
lea edx, [ebp + 8]
push edx
push 0
neg cl
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
sbb ecx, ecx
neg ecx
add ecx, 0x80000001
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x4188b8
push 0
push 0
push 0x7fffffff
lea edx, [ebp - 0x108]
push edx
push 0x104
lea eax, [ebp - 0x310]
push eax
call fcn.00418f20
lea ecx, [ebp - 4]
push ecx
mov ecx, ebx
and cl, 4
lea edx, [ebp + 8]
push edx
push 0
neg cl
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x310]
push eax
sbb ecx, ecx
neg ecx
add ecx, 0x80000001
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x418960
mov eax, dword [0x45ebb8]
test eax, eax
jne 0x4188e5
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push esi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x41891f
push 0
push 0
push 0x7fffffff
push edi
push 0x104
lea eax, [ebp - 0x310]
push eax
call fcn.00418f20
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
mov edx, dword [ebp + 8]
push eax
push 0
lea ecx, [ebp - 0x310]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x41895a
test bl, 8
je 0x418940
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov esi, eax
test esi, esi
jne 0x41895a
mov ecx, dword [ebp + 8]
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x41895a
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 8]
push edx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4190e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x100]
push pe_nt_image_headers32
push edx
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret
Function at 0x419980
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
inc ecx
test eax, eax
mov dword [edi + 4], ecx
jne 0x419acc
push 0x45ec10
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x45ec10
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x4199d2
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x419a98
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.StackWalk
push esi
call ebx
test eax, eax
mov dword [edi + 8], eax
je 0x419a98
push str.SymFunctionTableAccess
push esi
call ebx
test eax, eax
mov dword [edi + 0xc], eax
je 0x419a98
push str.SymGetLineFromAddr
push esi
call ebx
test eax, eax
mov dword [edi + 0x10], eax
je 0x419a98
push str.SymGetModuleBase
push esi
call ebx
test eax, eax
mov dword [edi + 0x14], eax
je 0x419a98
push str.SymGetModuleInfo
push esi
call ebx
test eax, eax
mov dword [edi + 0x18], eax
je 0x419a98
push str.SymGetOptions
push esi
call ebx
test eax, eax
mov dword [edi + 0x1c], eax
je 0x419a98
push str.SymGetSymFromAddr
push esi
call ebx
test eax, eax
mov dword [edi + 0x20], eax
je 0x419a98
push str.SymInitialize
push esi
call ebx
test eax, eax
mov dword [edi + 0x24], eax
je 0x419a98
push str.SymCleanup
push esi
call ebx
test eax, eax
mov dword [edi + 0x28], eax
je 0x419a98
push str.SymSetOptions
push esi
call ebx
test eax, eax
mov dword [edi + 0x2c], eax
je 0x419a98
push str.SymEnumerateModules
push esi
call ebx
test eax, eax
mov dword [edi + 0x30], eax
je 0x419a98
push str.SymEnumerateSymbols
push esi
call ebx
test eax, eax
mov dword [edi + 0x34], eax
jne 0x419ab4
push 0x45ec10
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x45ec10
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
ret
push str.MiniDumpWriteDump
push esi
call ebx
push 0x45ec10
mov dword [edi + 0x38], eax
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x419dc0
Capabilities:
Check for sandbox and av modules
Link many functions at runtime

Disassembly:
mov ecx, 0x45ec28
jmp fcn.00419980

Function at 0x419ff0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 4], ecx
push eax
lea ecx, [ebp - 0x10c]
push ecx
mov ebx, edx
mov dword [ebp - 8], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x41a045
push esi
push edi
or ecx, 0xffffffff
mov edi, str._unknown_
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
lea edx, [ebp - 0x10c]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
lea ecx, [ebp - 0x10c]
push ecx
push str.User:
push str.__10s_s
push ebx
call dword [ebp - 4]
add esp, 0x10
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a070
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 8], ecx
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ebx, edx
mov dword [ebp - 4], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x41a0bc
push esi
push edi
or ecx, 0xffffffff
mov edi, str._unknown_
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
lea edx, [ebp - 0x18]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
lea ecx, [ebp - 0x18]
push ecx
push str.Computer:
push str.__10s_s
push ebx
call dword [ebp - 8]
add esp, 0x10
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41abb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov ebx, edx
push str._unknown_
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0x1c
lea eax, [ebp - 0x1c]
push eax
mov dword [ecx], 0
push esi
mov dword [edx], 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41acab
mov edi, dword [ebp - 0x18]
test edi, edi
jne 0x41ac04
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
mov ecx, dword [ebp + 8]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41ac2d
mov edx, dword [ebp + 8]
push edx
push str._unknown_
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
je 0x41acab
cmp word [edi], 0x5a4d
jne 0x41acab
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x41acab
mov ecx, dword [eax + edi]
add eax, edi
cmp ecx, 0x4550
jne 0x41acab
xor ecx, ecx
mov cx, word [eax + 0x14]
sub esi, edi
mov dword [ebp + 8], 0
lea edx, [ecx + eax + 0x18]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jbe 0x41acab
lea eax, [edx + 0x10]
mov edx, dword [eax]
mov edi, dword [eax - 8]
cmp edx, edi
mov ebx, dword [eax - 4]
ja 0x41ac7a
mov edx, edi
cmp esi, ebx
jb 0x41ac84
add edx, ebx
cmp esi, edx
jbe 0x41ac9b
mov edx, dword [ebp + 8]
inc edx
add eax, 0x28
cmp edx, ecx
mov dword [ebp + 8], edx
jb 0x41ac6c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
inc edx
sub esi, ebx
mov dword [eax], edx
mov dword [ecx], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41ad80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
push 0x45ec68
mov esi, edx
mov edi, ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x41ae09
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push str.psapi.dll
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x41add7
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea edx, [ebp - 4]
push edx
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x41ae20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x41ae09
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x10]
push 0x45ec68
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41ea20
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
xor edi, edi
push edi
push 0xffffffffffffffff
mov esi, ecx
push 0x440210
push 0x18
mov dword [esi + 4], edi
mov dword [esi + 8], 1
mov dword [esi], 0x43caf4
call fcn.0040ff20
cmp eax, edi
mov ebx, dword [ebp + 0xc]
je 0x41ea64
mov ecx, dword [ebp + 8]
push ebx
push ecx
mov ecx, eax
call fcn.0041e720
jmp 0x41ea66
xor eax, eax
lea edx, [esi + 0x10]
mov dword [edx], edi
mov dword [esi + 0xc], eax
mov dword [edx + 4], edi
mov edi, dword [eax]
push edx
mov ecx, eax
call dword [edi + 0x10]
mov edx, dword [ebx]
push 0x104
push edx
lea edi, [esi + 0x20]
push edi
call fcn.00410250
push 4
push 0x1000
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, edi
mov dword [esi + 0x18], eax
call fcn.0041eb20
inc eax
push eax
push edi
lea eax, [ebp - 0x114]
push eax
call fcn.00410250
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x41eaf0
mov ecx, dword [ebp - 4]
lea eax, [ecx - 1]
test ecx, eax
jne 0x41eaf0
mov dword [esi + 0x1c], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x1c], 0xffff
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x422f00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
je 0x42300d
mov esi, dword [edi + 0x1c]
cmp esi, ebx
je 0x42300d
cmp dword [edi + 0x20], ebx
je 0x42300d
cmp dword [edi + 0x24], ebx
je 0x42300d
mov dword [edi + 0x14], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x2c], 2
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
cmp eax, ebx
mov dword [esi + 0x14], ebx
jge 0x422f51
neg eax
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x18]
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0xffffffb9
add ecx, 0x71
mov dword [esi + 4], ecx
xor ecx, ecx
xor edx, edx
cmp eax, 2
push ebx
jne 0x422f74
call fcn.0041b140
jmp 0x422f79
call fcn.0042a820
mov dword [edi + 0x30], eax
mov ecx, esi
mov dword [esi + 0x20], ebx
call fcn.0042a940
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
shl edx, 1
mov dword [esi + 0x34], edx
mov word [ecx + eax*2 - 2], bx
mov edx, dword [esi + 0x44]
mov edi, dword [esi + 0x3c]
lea ecx, [edx + edx - 2]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x7c]
lea eax, [eax + eax*2]
shl eax, 2
movzx ecx, word [eax + 0x43cc22]
mov dword [esi + 0x78], ecx
movzx edx, word [eax + 0x43cc20]
mov dword [esi + 0x84], edx
movzx ecx, word [eax + 0x43cc24]
mov dword [esi + 0x88], ecx
movzx edx, word [eax + 0x43cc26]
pop edi
mov dword [esi + 0x64], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x74], edx
mov dword [esi + 0x70], 2
mov dword [esi + 0x58], 2
pop esi
xor eax, eax
pop ebx
ret
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
ret