joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4077d5
Capabilities:
Check os version
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x45b480]
xor eax, esp
mov dword [esp + 0x58], eax
mov ecx, dword [0x47e714]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, edx
test ecx, ecx
je 0x407806
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x47e714], ebx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0xa4], 6
jne 0x407869
cmp dword [eax + 0xa8], 1
ja 0x407869
push 0x3c
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0x40
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [esp + 0x34], ebx
ja 0x407869
jb 0x407856
cmp dword [esp + 0x30], 0x60000000
ja 0x407869
push ecx
mov ecx, esp
push str.net_stop_TrustedInstaller
call fcn.00401e23
call fcn.00413622
pop ecx
mov ecx, 0x47e688
call fcn.004074ca
test eax, eax
jne 0x407981
lea ecx, [esp + 0x1c]
call fcn.004155ab
mov esi, dword [esp + 0x1c]
cmp dword [esi - 0xc], ebx
jne 0x407895
push 5
pop ebx
jmp 0x407977
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push dword [ebp + 8]
mov ecx, 0x47e688
push esi
push edi
call fcn.00407653
mov ebx, eax
test ebx, ebx
jne 0x407962
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
xor edi, edi
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x28]
mov ebx, eax
test ebx, ebx
js 0x407962
cmp dword [esp + 0x14], edi
jne 0x4078ea
push 0xa
jmp 0x407961
cmp dword [esp + 0x18], 0xffffffef
je 0x40795f
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x407931
push 0x1c
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
pop ecx
test edi, edi
je 0x40792f
mov ecx, dword [ebp + 0x10]
xor eax, eax
and dword [edi + 0x10], 0
inc eax
and dword [edi + 0x18], 0
mov dword [edi], 0x44e8d4
mov dword [edi + 4], eax
mov dword [edi], 0x44eacc
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x14], eax
jmp 0x407931
xor edi, edi
mov eax, dword [esp + 0x10]
push edi
push 7
push 4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov ebx, eax
test edi, edi
je 0x40794c
mov eax, dword [edi]
push edi
call dword [eax + 8]
test ebx, ebx
js 0x407962
push ecx
mov ecx, 0x47e688
call fcn.00407753
mov ebx, eax
jmp 0x407962
push 0x50
pop ebx
mov ecx, esi
call fcn.00414ef8
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x407977
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
lea ecx, [esi - 0x10]
call fcn.004025d7
mov eax, ebx
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004488a4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4081ea
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 1
mov esi, ecx
call fcn.00409062
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push dword [esi + 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push edi
push edi
push esi
push 0x4081a5
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov ecx, dword [ebp - 4]
add esp, 0x18
mov dword [esi + 0x2c], eax
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.004488a4
leave
ret 0x10

Function at 0x409062
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
push edi
cmp eax, 1
ja 0x40916c
or dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x34], eax
test eax, eax
jne 0x4090af
push 0x1e
pop eax
push 0
push 0x3e8
push 0x3eb
push dword [ebx + 4]
mov word [ebx + 0x30], ax
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x40916c
cmp eax, 1
jne 0x40916c
push 0x3eb
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
lea eax, [ebp - 0x18]
xor esi, esi
push eax
push dword [ebx + 0x54]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
push eax
push dword [ebx + 4]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
sub ecx, eax
add ecx, dword [ebp - 0x14]
sub eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
add eax, 0x46
mov esi, dword [ebp - 0x10]
sub edi, esi
sub edi, dword [ebp - 0x28]
sub esi, dword [ebp - 0x18]
add edi, dword [ebp - 0x18]
sar ecx, 1
push 1
add eax, ecx
sar edi, 1
lea edx, [ecx + 0x46]
sub eax, edx
push eax
push esi
push edx
push edi
push dword [ebx + 0x54]
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push dword [ebx + 0x54]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0xc8
push 0x3e9
push dword [ebx + 4]
call esi
push 0
push 0x96
push 0x3ea
push dword [ebx + 4]
call esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004488a4
leave
ret 4
Function at 0x40917d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [0x45ba64]
xor esi, esi
push 0x44d294
push dword [ebp + 0xc]
mov ebx, esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
test eax, eax
je 0x409297
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4092a2
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test edi, edi
je 0x4091d9
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
jmp 0x4091de
mov eax, esi
mov dword [ebp - 4], esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x409297
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x409207
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x409297
push dword [ebp - 4]
push dword [ebp - 8]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jns 0x40923a
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40928a
push esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], 1
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov eax, dword [ebp + 0xc]
push 0x10
mov dword [ebp - 8], eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
test edi, edi
je 0x40928a
lea ecx, [edi + 4]
mov dword [edi], 0x44ea68
push ecx
push dword [ebp - 8]
mov dword [ecx], esi
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [edi + 8], eax
mov esi, edi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x409297
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test ebx, ebx
je 0x4092a2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x40b08b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b0a9
push 2
pop eax
jmp 0x40b146
push ebx
call fcn.00402506
push eax
lea ecx, [ebp - 4]
call fcn.00402331
lea edx, [ebp - 4]
mov ecx, esi
call fcn.004141f5
mov esi, dword [ebp - 4]
mov ebx, eax
test ebx, ebx
jne 0x40b13b
push edi
push str.bf1a281b_ad7b_4476_ac95_f47682990ce7
lea ecx, [ebp - 4]
call fcn.00401e23
push 4
push 0x44d718
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x40b0f9
lea edi, [esi + 8]
mov ecx, edi
call fcn.00401f04
push eax
push edi
jmp 0x40b0fd
push dword [esi - 0xc]
push esi
lea ecx, [ebp - 4]
call fcn.0040173d
push 0x2f
push ecx
lea ecx, [ebp - 4]
call fcn.0040cbab
mov edi, dword [ebp - 4]
push esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
mov ebx, eax
test ebx, ebx
jne 0x40b132
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.00402280
lea ecx, [edi - 0x10]
call fcn.004025d7
pop edi
lea ecx, [esi - 0x10]
call fcn.004025d7
mov eax, ebx
pop ebx
pop esi
leave
ret
Function at 0x40bc8a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push ebx
push edi
mov ebx, ecx
lea ecx, [ebp - 0x210]
push ecx
push 0x20019
push 4
mov eax, dword [ebx]
push 0x44d724
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x40bdda
push esi
xor ecx, ecx
mov dword [ebp - 0x214], 0x104
push ecx
push ecx
lea eax, [ebp - 0x218]
mov esi, ecx
push eax
push ecx
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push 2
pop edi
jmp 0x40bd4c
cmp word [ebp - 0x20c], 0
je 0x40bd1a
cmp dword [ebp - 0x218], edi
je 0x40bd55
xor ecx, ecx
mov dword [ebp - 0x214], 0x104
push ecx
push ecx
lea eax, [ebp - 0x218]
inc esi
push eax
push ecx
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40bd08
jmp 0x40bdd9
call fcn.00402506
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402331
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x21c]
push eax
lea edx, [ebp - 0x20c]
call fcn.00414467
mov esi, dword [ebp - 0x21c]
mov edi, eax
pop ecx
test edi, edi
jne 0x40bdd1
push 0xc
push str._SystemRoot_
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x40bdce
push dword [ebx + 8]
mov ecx, dword [ebx + 4]
call fcn.00402280
mov edi, str.Windows
mov ecx, edi
call fcn.00401f04
mov ecx, dword [ebx + 4]
push eax
push edi
call fcn.0040173d
mov ecx, dword [ebx + 4]
lea eax, [esi + 0x18]
push eax
call fcn.0040159b
xor edi, edi
jmp 0x40bdd1
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.004025d7
pop esi
cmp dword [ebp - 0x210], 0
je 0x40bdef
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.004488a4
leave
ret
Function at 0x40f19b
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
push 0x4569b8
call fcn.00448cd0
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], 0x3ffff4
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + 0xc]
push eax
push 1
push edi
push edx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x1c]
mov dword [esi + 4], eax
mov dword [esi], edi
mov dword [esi + 8], edi
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x40f202
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40fda7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xc0], edx
cmp dword [edi + 0x68], 0
mov dword [ebp - 0xc4], ebx
je 0x40fef3
test eax, eax
je 0x40fef3
test ecx, ecx
je 0x40fef3
test edx, edx
je 0x40fef3
test ebx, ebx
je 0x40fef3
cmp dword [edi + 0x60], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jne 0x40fe53
lea esi, [edi + 0x80]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x60], 0
jne 0x40fe50
xor eax, eax
cmp dword [edi + 4], eax
jne 0x40fe49
push eax
push eax
push edi
push 0x40facc
push eax
push eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [edi + 4], eax
mov dword [edi + 0x60], 1
push esi
call ebx
lea ecx, [ebp - 0xb4]
call fcn.0040fb00
push str.leakfix
call fcn.0040fb9e
push dword [ebp - 0xb8]
lea ecx, [ebp - 0x9c]
call fcn.0040fb9e
mov esi, 0x44c488
lea ecx, [ebp - 0x84]
push esi
call fcn.0040fb9e
push dword [ebp - 0xbc]
lea ecx, [ebp - 0x6c]
call fcn.0040fb9e
push dword [ebp - 0xc0]
lea ecx, [ebp - 0x54]
call fcn.0040fb9e
push dword [ebp - 0xc4]
lea ecx, [ebp - 0x3c]
call fcn.0040fb9e
push esi
lea ecx, [ebp - 0x24]
call fcn.0040fb9e
lea esi, [edi + 0x80]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0xb4]
push eax
lea ecx, [edi + 0x6c]
call fcn.0040fcf5
push esi
call ebx
and dword [edi + 0x10], 0
lea ecx, [edi + 8]
call fcn.0040260c
lea ecx, [ebp - 0xb4]
call fcn.0040fb60
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004488a4
leave
ret 0x1c
Function at 0x412748
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
push esi
push edi
test ebx, ebx
jne 0x41276e
mov eax, 0x80070057
jmp 0x412841
mov esi, 0x200
lea eax, [ebp - 0x408]
push esi
push eax
xor edi, edi
push str._ALLUSERSPROFILE_360safe360leakfixerHotfixLog.dat
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x412798
call fcn.0041390d
jmp 0x412841
cmp eax, esi
jb 0x4127a6
mov eax, 0x80004005
jmp 0x412841
push 0x45bab8
push 0x24
call fcn.00437440
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4127ff
mov dword [esi + 4], edi
or eax, 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi], 0x4547ac
mov dword [esi + 4], 1
mov dword [esi], 0x4547d0
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
jmp 0x412801
mov esi, edi
test esi, esi
jne 0x41280c
mov eax, 0x8007000e
jmp 0x412841
lea ecx, [esi + 8]
lea edx, [ebp - 0x408]
call fcn.00411ef8
mov edi, eax
test edi, edi
je 0x41282d
jle 0x412831
movzx edi, di
or edi, 0x80070000
jmp 0x41282f
xor edi, edi
test edi, edi
je 0x41283d
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov eax, edi
jmp 0x412841
mov dword [ebx], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004488a4
leave
ret

Function at 0x412b2e
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
push 0x456a18
call fcn.00448cd0
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], 0x3ffff4
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + 0xc]
push eax
push 1
push dword [ebp + 8]
push edx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x1c]
mov dword [esi + 4], eax
mov dword [esi], edi
mov dword [esi + 8], edi
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x412b97
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x412ba9
Capabilities:
Encode data using base64 via winapi

Disassembly:
push 0xc
push 0x456a38
call fcn.00448cd0
mov edi, edx
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
lea ebx, [esi + 0xc]
lea eax, [ebp - 0x1c]
push eax
push ecx
push 0x40000001
push dword [esi + 4]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x412c26
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.0040281d
push eax
push 0x40000001
push dword [esi + 4]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.00402859
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
inc eax
jmp 0x412c2f
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413622
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
push edi
push 0x40
xor esi, esi
mov dword [ebp - 0x64], 0x44
lea eax, [ebp - 0x60]
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x38], 0x101
lea edi, [ebp - 0x18]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x34], ax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x41366f
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00401f75
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push esi
push esi
push 0x400
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x413697
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4136c9
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x80004005
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
mov esi, dword [ebp - 8]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004025d7
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x4136da
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x414], eax
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x418], esi
cmp esi, 0xffffffff
je 0x413741
push 0xf0000000
push 0x18
push ebx
push ebx
lea eax, [ebp - 0x410]
mov dword [ebp - 0x40c], ebx
push eax
mov dword [ebp - 0x410], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x41374e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x413825
lea eax, [ebp - 0x40c]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x413779
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x413818
push 0xd
pop edi
jmp 0x4137ae
cmp dword [ebp - 0x408], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4137d9
push 0
push dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4137cf
xor ebx, ebx
push ebx
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41377e
jmp 0x41380c
call ebx
mov edi, eax
test edi, edi
jne 0x41380a
jmp 0x4137db
xor edi, edi
push 0
lea eax, [ebp - 0x408]
mov dword [ebp - 0x408], 0x10
push eax
push dword [ebp - 0x414]
push 2
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x41380a
call ebx
mov edi, eax
xor ebx, ebx
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [ebp - 0x418]
call fcn.00411dea
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004488a4
leave
ret
Function at 0x413841
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 4]
call fcn.00401e23
mov esi, dword [ebp - 4]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x413860
push 0x57
pop edi
jmp 0x4138d3
dec eax
lea ecx, [ebp - 4]
push eax
call fcn.00411cbd
push 0x5c
pop edi
cmp ax, di
je 0x413885
push ecx
lea ecx, [ebp - 4]
call fcn.0040cb8b
inc eax
lea ecx, [ebp - 4]
push eax
call fcn.004020f5
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
jmp 0x4138c4
xor eax, eax
push esi
mov word [ebx], ax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4138bd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4138bd
call fcn.00413ed5
mov edi, eax
cmp edi, 0xb7
jne 0x4138d3
push 0x5c
pop edi
mov word [ebx], di
lea eax, [ebx + 2]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov ebx, eax
test ebx, ebx
jne 0x41388f
xor edi, edi
lea ecx, [esi - 0x10]
call fcn.004025d7
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413bc1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
push ebx
push esi
push edi
mov edx, dword [eax]
mov esi, ecx
mov eax, dword [0x47eed8]
cmp eax, dword [edx + 4]
jle 0x413c2a
mov edi, 0x47eed8
push edi
call fcn.00436ed0
cmp dword [0x47eed8], 0xffffffff
pop ecx
jne 0x413c2a
push str.AddDllDirectory
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
push edi
setne byte [0x47eeb0]
call fcn.00436e10
pop ecx
xor edi, edi
cmp byte [0x47eeb0], 0
je 0x413c53
mov edi, 0x800
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004488a4
leave
ret
push 0x5c
pop ebx
push ebx
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x413c3a
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x413ccc
cmp ecx, edi
jae 0x413ccc
movzx eax, word [esi]
mov word [ebp + ecx*2 - 0x20c], bx
inc ecx
test ax, ax
je 0x413caa
mov edx, eax
lea esi, [esi + 2]
mov word [ebp + ecx*2 - 0x20c], dx
movzx eax, word [esi]
inc ecx
mov edx, eax
test ax, ax
jne 0x413c94
add ecx, ecx
cmp ecx, 0x208
jae 0x413cd3
xor eax, eax
lea esi, [ebp - 0x20c]
push 8
mov word [ebp + ecx - 0x20c], ax
pop edi
jmp 0x413c3a
xor eax, eax
jmp 0x413c44
call fcn.00437290
int3

Function at 0x413d6a
Capabilities:
Get process heap force flags

Disassembly:
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
movzx eax, word [ecx + 0xa4]
movzx ecx, word [ecx + 0xa8]
shl eax, 0x10
or eax, ecx
ret

Function at 0x413ffd
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004026f1
push 0x540
mov ecx, esi
call fcn.0040281d
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ebx
push ecx
mov ecx, esi
push dword [eax - 8]
call fcn.00411dbf
push eax
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x414070
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41408d
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax - 8]
add eax, 0x480
push eax
call fcn.0040281d
mov eax, dword [esi]
lea ecx, [ebp - 4]
push 0
push ecx
mov ecx, esi
push dword [eax - 8]
call fcn.00411dbf
push eax
push 0
push 0
push 0x70050
push edi
call ebx
test eax, eax
je 0x41403c
push dword [ebp - 4]
mov ecx, esi
call fcn.00402859
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
test eax, eax
jne 0x414088
mov eax, 0x65b
jmp 0x414088