joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408550
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
lea ecx, [ebp + 8]
call fcn.004012d0
movzx eax, word [eax + 2]
cmp eax, 0x3a
jne 0x4085ce
lea ecx, [ebp + 8]
call fcn.004012d0
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x408589
lea ecx, [ebp + 8]
call fcn.004012d0
movzx edx, word [eax + 4]
cmp edx, 0x2f
jne 0x4085ce
lea ecx, [ebp + 8]
call fcn.004012d0
mov ax, word [eax]
mov word [ebp - 8], ax
mov ecx, 0x3a
mov word [ebp - 6], cx
mov edx, 0x5c
mov word [ebp - 4], dx
xor eax, eax
mov word [ebp - 2], ax
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x4085cc
lea ecx, [ebp + 8]
call fcn.00414ca0
jmp 0x40876c
jmp 0x4085db
lea ecx, [ebp + 8]
call fcn.00414ca0
jmp 0x40876c
push str.7ZSfx_03x.cmd
lea edx, [ebp - 0x18]
push edx
call fcn.00403780
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x18]
call fcn.004012d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40875c
lea ecx, [ebp - 0x24]
call fcn.004010d0
push str.:Repeat_r_n
lea ecx, [ebp - 0x24]
call fcn.00401d50
push str.del__
lea ecx, [ebp - 0x24]
call fcn.00419420
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.00419480
push 0x42a53c
lea ecx, [ebp - 0x24]
call fcn.00419420
push str.if_exist__
lea ecx, [ebp - 0x24]
call fcn.00419420
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00419480
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x24]
call fcn.00419420
push str.del__
lea ecx, [ebp - 0x24]
call fcn.00419420
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x24]
call fcn.00419480
push 0x42a53c
lea ecx, [ebp - 0x24]
call fcn.00419420
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040d8e0
push eax
push 1
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.00403a70
add esp, 0xc
mov ecx, eax
call fcn.00403a20
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x38]
call fcn.00414ca0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 0
je 0x4086fc
lea ecx, [ebp - 0x24]
call fcn.0040d8e0
cmp dword [ebp - 0x28], eax
je 0x408727
lea ecx, [ebp - 0x18]
call fcn.004012d0
push eax
call fcn.00405070
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.00414ca0
lea ecx, [ebp - 0x18]
call fcn.00414ca0
lea ecx, [ebp + 8]
call fcn.00414ca0
jmp 0x40876c
push 0
lea ecx, [ebp + 8]
call fcn.004012d0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.004012d0
push eax
push 0x42a4f8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x24]
call fcn.00414ca0
lea ecx, [ebp - 0x18]
call fcn.00414ca0
lea ecx, [ebp + 8]
call fcn.00414ca0
mov esp, ebp
pop ebp
ret
Function at 0x40a250
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e0
mov dword [ebp - 0x4e0], ecx
lea eax, [ebp - 0x220]
push eax
push 0x4b6
mov ecx, dword [ebp - 0x4e0]
call fcn.004097a0
mov ecx, dword [ebp - 0x214]
sub ecx, dword [ebp - 0x21c]
add ecx, 2
mov edx, dword [ebp - 0x4e0]
mov dword [edx + 0x58], ecx
push 1
push 0x4b6
mov ecx, dword [ebp - 0x4e0]
call fcn.00409870
push 1
push 0x4b7
mov ecx, dword [ebp - 0x4e0]
call fcn.00409870
mov dword [ebp - 0x4d8], 0
push 0x2b0
push 0
lea eax, [ebp - 0x4d4]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea edx, [ebp - 0x4d8]
push edx
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 0x4e0]
mov edx, dword [ebp - 0x4d8]
mov dword [ecx + 0x50], edx
push 0x40a4a0
push 0xfffffffffffffffc
push 0x4b7
mov ecx, dword [ebp - 0x4e0]
call fcn.00408a40
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp - 0x4e0]
mov dword [ecx + 0x54], eax
mov ecx, dword [ebp - 0x4e0]
call fcn.004093d0
mov dword [ebp - 0x4dc], eax
mov ecx, dword [ebp - 0x4e0]
call fcn.0040a5c0
mov eax, dword [ebp - 0x4dc]
mov esp, ebp
pop ebp
ret

Function at 0x40b560
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x40b578
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x40b5cb
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x40b599
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x40b5bc
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor eax, ecx
mov dword [ebp - 8], eax
jmp 0x40b590
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx*4 + 0x42db00], eax
jmp 0x40b56f
jmp 0x40b5d6
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x800
jae 0x40b60e
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x42d700]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
mov edx, dword [ebp - 0x10]
shr edx, 8
xor edx, dword [ecx*4 + 0x42db00]
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x42db00], edx
jmp 0x40b5cd
mov dword [0x42daf0], 0x4280e0
mov dword [0x42fb00], 0x4280e0
mov dword [0x42daec], 0x428000
call fcn.00416340
test eax, eax
jne 0x40b63f
mov dword [0x42fb00], 0x428000
mov esp, ebp
pop ebp
ret
Function at 0x416720
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x416751
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x416751
xor al, al
jmp 0x416770
mov eax, dword [ebp - 8]
xor edx, edx
mov cl, 0x20
call fcn.004278b0
mov ecx, dword [ebp - 4]
xor esi, esi
add eax, ecx
adc edx, esi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4168c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
call fcn.00416b90
add esp, 4
mov byte [ebp - 1], al
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x416a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x42d398]
jbe 0x416a6d
mov ecx, dword [0x42d398]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.00416b90
add esp, 4
mov byte [ebp - 1], al
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x416b20
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push eax
call fcn.00416b90
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x41aa70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0041a9c0
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x427bc8
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x42b4f8
call fcn.00427be4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x42fb08
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x4279e7
cmp eax, esi
jne 0x4279da
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x4279ea
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4279c1
xor esi, esi
inc esi
mov eax, dword [0x42fb04]
cmp eax, esi
jne 0x4279fd
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x427a38
mov eax, dword [0x42fb04]
test eax, eax
jne 0x427a32
mov dword [0x42fb04], esi
push 0x429360
push 0x429354
call fcn.00427948
pop ecx
pop ecx
test eax, eax
je 0x427a38
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x427b02
mov dword [0x42d7bc], esi
mov eax, dword [0x42fb04]
cmp eax, esi
jne 0x427a5c
push 0x429350
push 0x4292fc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x42fb04], 2
cmp dword [ebp - 0x1c], ebx
jne 0x427a69
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x42fb0c], ebx
je 0x427a8a
push 0x42fb0c
call fcn.00427d44
pop ecx
test eax, eax
je 0x427a8a
push ebx
push 2
push ebx
call dword [0x42fb0c]
push dword [0x42d7a4]
push dword [0x42d7a8]
push dword [0x42d7a0]
call fcn.00407520
add esp, 0xc
mov dword [0x42d7b8], eax
cmp dword [0x42d7ac], ebx
jne 0x427ae8
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x42d7bc], ebx
jne 0x427af6
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x42d7b8]
call fcn.00427c29
ret
call fcn.00427e6d
jmp 0x42799f
Function at 0x38a72f2e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov ebx, ecx
jne 0x38a72f47
push 0x80004005
call fcn.38a7262f
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x38a72f49
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x38a734cc
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x38a719c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.38a72ea1
mov edi, eax
cmp edi, esi
je 0x38a7352c
lea ecx, [ebp - 0x208]
call fcn.38a72e3c
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.38a76c87
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x38a7354a
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x208]
call fcn.38a734cc
cmp eax, esi
jne 0x38a73592
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
je 0x38a73534
lea ecx, [ebp - 0x208]
call fcn.38a72e3c
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.38a72e3c
mov eax, esi
jmp 0x38a7351b
Function at 0x38a747b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x38a719c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
push edi
mov esi, ecx
mov dword [ebp - 0x414], eax
call dword [0x38a79450]
xor edi, edi
push 2
push edi
push ebx
mov dword [ebp - 0x410], edi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x408], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x418], ebx
jne 0x38a7481f
call fcn.38a72d59
mov esi, eax
jmp 0x38a74909
push dword [ebp - 0x414]
push dword [ebp - 0x40c]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x38a74842
call fcn.38a72d59
jmp 0x38a748fb
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 0x40c], eax
je 0x38a74838
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x38a748a1
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x38a7487e
lea ecx, [ebp - 0x408]
call fcn.38a7347a
mov esi, 0x8007000e
lea ecx, [ebp - 0x410]
call fcn.38a733aa
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.38a76c87
leave
ret 0x10
push eax
lea ecx, [ebp - 0x408]
call fcn.38a73a32
mov ebx, dword [ebp - 0x408]
cmp ebx, edi
jne 0x38a748be
mov esi, 0x8007000e
jmp 0x38a748fd
call dword [0x38a79450]
push esi
push ebx
push esi
push dword [ebp - 0x40c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x38a74838
mov ecx, dword [ebp - 0x408]
push dword [ebp + 0x14]
mov word [ecx + eax*2], di
push dword [ebp - 0x408]
lea ecx, [ebp - 0x420]
call fcn.38a745f9
mov esi, eax
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x38a74883
lea ecx, [ebp - 0x408]
call fcn.38a7347a
jmp 0x38a74883

Function at 0x38a7575c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
call fcn.38a72d6e
test eax, eax
jl 0x38a757c2
test esi, esi
mov edx, dword [ebp - 4]
jne 0x38a75795
test edi, edi
jmp 0x38a757b0
test edi, edi
je 0x38a757b9
cmp edx, 1
je 0x38a757a3
cmp edx, 2
jne 0x38a757b9
mov ecx, dword [esi]
cmp ecx, 2
jb 0x38a757b2
cmp word [ecx + edi - 2], 0
je 0x38a757b9
mov eax, 0x8000ffff
jmp 0x38a757c2
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x38a757c2
mov dword [ecx], edx
pop edi
pop esi
leave
ret 0x14
Function at 0x38a7585e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
push edi
xor ebx, ebx
lea edi, [esi + 8]
cmp eax, dword [edi]
mov dword [ebp - 8], ebx
jne 0x38a759b0
push 0x802
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x38a759c1
push 0x802
push 0
push ebx
call sub.MSVCR80.dll_memset
mov eax, dword [esi + 0x20]
add esp, 0xc
test eax, eax
jne 0x38a758c6
push eax
push edi
push 0x800
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x38a759b7
jmp 0x38a758db
mov ecx, dword [eax]
push edi
push 0x800
push ebx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x38a759b7
mov ecx, dword [edi]
test ecx, ecx
je 0x38a759b7
xor edx, edx
cmp dword [esi + 0x14], edx
jne 0x38a7591d
mov al, byte [ebx]
cmp al, 0xff
jne 0x38a75901
cmp byte [ebx + 1], 0xfe
jne 0x38a75901
mov dword [esi + 0x18], 1
jmp 0x38a75914
cmp al, 0xfe
jne 0x38a75914
cmp byte [ebx + 1], 0xff
jne 0x38a75914
xor eax, eax
inc eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov dword [esi + 0x14], eax
cmp dword [esi + 0x18], edx
je 0x38a75926
shr ecx, 1
mov dword [edi], ecx
cmp dword [esi + 0x1c], edx
je 0x38a75951
mov ecx, dword [edi]
lea ecx, [ecx + ecx - 2]
cmp ecx, edx
jbe 0x38a75951
dec ecx
shr ecx, 1
lea eax, [ebx + 1]
inc ecx
mov dl, byte [eax - 1]
mov byte [ebp + 0xb], dl
mov dl, byte [eax]
mov byte [eax - 1], dl
mov dl, byte [ebp + 0xb]
mov byte [eax], dl
inc eax
inc eax
dec ecx
jne 0x38a7593c
cmp dword [esi + 0x18], 0
je 0x38a75966
push dword [esi + 0x10]
call fcn.38a756c0
mov dword [esi + 0x10], ebx
xor ebx, ebx
jmp 0x38a759a0
test byte [0x38a794ec], 1
jne 0x38a75981
or dword [0x38a794ec], 1
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [0x38a794e8], eax
push 0x800
push dword [esi + 0x10]
push dword [edi]
push ebx
push 0
push dword [0x38a794e8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
mov dword [edi], eax
je 0x38a759b7
xor eax, eax
cmp dword [ebp - 4], eax
je 0x38a759ad
cmp dword [esi + 0x18], eax
je 0x38a759ad
inc eax
mov dword [esi + 0xc], eax
mov dword [ebp - 8], 1
test ebx, ebx
je 0x38a759c1
push ebx
call fcn.38a756c0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x38a76bd3
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x38a719e4
push 0x38a719c8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x38a76c08
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x38a719c4
push ebx
call edi
test esi, esi
mov dword [0x38a719c4], esi
jne 0x38a76c6c
mov dword [0x38a719c4], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x38a79454], 0x44bf19b1
pop ebx
leave
ret

Function at 0x38a76c87
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x38a719c4]
jne 0x38a776fb
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x38a79690], eax
mov dword [0x38a7968c], ecx
mov dword [0x38a79688], edx
mov dword [0x38a79684], ebx
mov dword [0x38a79680], esi
mov dword [0x38a7967c], edi
mov word [0x38a796a8], ss
mov word [0x38a7969c], cs
mov word [0x38a79678], ds
mov word [0x38a79674], es
mov word [0x38a79670], fs
mov word [0x38a7966c], gs
pushfd
pop dword [0x38a796a0]
mov eax, dword [ebp]
mov dword [0x38a79694], eax
mov eax, dword [ebp + 4]
mov dword [0x38a79698], eax
lea eax, [ebp + 8]
mov dword [0x38a796a4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x38a795e0], 0x10001
mov eax, dword [0x38a79698]
mov dword [0x38a79594], eax
mov dword [0x38a79588], 0xc0000409
mov dword [0x38a7958c], 1
mov eax, dword [0x38a719c4]
mov dword [ebp - 0x328], eax
mov eax, dword [0x38a79454]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x38a795d8], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x38a71d44
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x38a795d8], 0
jne 0x38a777eb
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x38a76c94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x38a71a10
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x38a76cec
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x38a71a08
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x38a76cec
mov al, 1
jmp 0x38a76cee
xor al, al
leave
ret 8
Function at 0x401ca4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x401cb3
pop dword [ebp - 0x50]
mov eax, 0x8554014e
add eax, 0x7aec1b65
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x38519
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x4461
mov ebx, eax
mov esi, 0x9c116be0
add esi, 0x642fcfe4
add esi, dword [ebp - 0x50]
mov edi, 0xb1137c11
sub edi, 0xdd882dc5
sub dword [ebp - 0x20], 0xbbaf9d0d
mov edx, dword [esi]
xor dword [ebp - 0x34], 0x81303bd0
xor edx, edi
xor dword [ebp - 0x24], eax
mov dword [ebx], edx
sub dword [ebp - 0x28], 0x87ee0496
add ebx, 0xa3165a0f
add ebx, 0x5ce9a5f5
add esi, 4
loop 0x401d07
add eax, 0x10457
mov ebx, eax
add eax, 0xbae5ebb3
sub eax, 0xbae5ebae
mov ecx, 0x159af19c
add ecx, 0xeaa50e64
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00401ca4
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00401ca4
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00401ca4
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00401ca4
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00401ca4
mov dword [0x41203c], eax
call fcn.00401ca4
test eax, eax
jge 0x402550
push 8
call fcn.00401ca4
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00401ca4
pop ecx
push 1
call fcn.00401ca4
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00401ca4
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00401ca4
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00401ca4
jmp 0x402495