joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100014e9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10001500
xor eax, eax
jmp 0x10001584
movzx eax, byte [ebp + 8]
push edi
mov dword [0x10017d8c], 0x10
mov dword [0x10017d90], eax
mov dword [0x10017d94], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x10017d98], eax
mov edi, 0x10017d8c
test esi, esi
je 0x1000157d
mov esi, dword [esi]
test esi, esi
je 0x1000157d
cmp dword [esi], 0xc00000fd
jne 0x1000157d
push 0x10017d88
push 0
push edi
push fcn.100011e7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10017d84], eax
test eax, eax
je 0x1000157d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x10017d80
push dword [0x10017d84]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [0x10017d80]
jmp 0x10001583
push edi
call fcn.100011e7
pop edi
pop esi
pop ebp
ret

Function at 0x10001618
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push str.kernelbase
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, 0x10013294
test eax, eax
je 0x1000164b
push ebx
push eax
call edi
mov dword [ebp - 4], eax
test eax, eax
jne 0x10001663
push str.kernel32
call esi
test eax, eax
je 0x1000165d
push ebx
push eax
call edi
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100016b6
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 7
push dword [ebp - 4]
call ebx
test eax, eax
je 0x100016b6
cmp byte [ebp + 8], 0
jne 0x10001693
mov esi, dword [ebp - 4]
mov edi, 0x10017d74
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x100132c4
jmp 0x100016a1
cmp byte [0x10017d74], 0
je 0x100016a8
mov esi, 0x10017d74
mov edi, dword [ebp - 4]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 7
push dword [ebp - 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002521
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 8], ebx
je 0x1000258e
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x1000258e
xor eax, eax
push ebx
push dword [ebp + 8]
mov word [esi + 0x14], ax
mov word [esi + 0x16], ax
mov word [esi + 0x18], ax
mov word [esi + 0x1a], ax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x1000258e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x10002595
push dword [ebp - 4]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x10013710
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
push dword [ebp - 4]
push ebx
test eax, eax
je 0x10002585
mov eax, dword [ebp - 8]
mov cx, word [eax + 0x12]
mov word [esi + 0x14], cx
mov cx, word [eax + 0x10]
mov word [esi + 0x16], cx
mov cx, word [eax + 0x16]
mov word [esi + 0x18], cx
mov ax, word [eax + 0x14]
mov word [esi + 0x1a], ax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
jmp 0x10002590

Function at 0x10003da5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10003dfc
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10003dee
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x10003dea
cmp edi, eax
jae 0x10003dee
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x10003ddc
cmp edi, eax
jb 0x10003df2
xor eax, eax
jmp 0x10003dfb
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10004b85
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100160a0]
jne 0x10004b8f
repz ret
jmp fcn.10006216
Function at 0x10004eeb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x10004f12
call fcn.10006bed
mov dword [eax], esi
call fcn.10006bda
push 0x16
pop esi
mov dword [eax], esi
call fcn.10006dad
mov eax, esi
jmp 0x10004f67
test dword [ebp + 0xc], 0xfffffff9
jne 0x10004ef8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10004f3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10006c00
pop ecx
call fcn.10006bda
mov eax, dword [eax]
jmp 0x10004f67
test al, 0x10
jne 0x10004f65
test al, 1
je 0x10004f65
test byte [ebp + 0xc], 2
je 0x10004f65
call fcn.10006bed
mov dword [eax], 5
call fcn.10006bda
mov dword [eax], 0xd
jmp 0x10004f36
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10009bee
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.10008f5e
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10008f13
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.10008f4e
jp 0x10009b88
sub bh, dl
push 0x104
lea eax, [ebp - 0x334]
push eax
Function at 0x1000e3cf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100160a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100077da
and dword [ebp - 0x14], 0
cmp dword [0x10017d1c], 0
mov dword [ebp - 0x18], eax
jne 0x1000e482
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000e52a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000e52a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10017d1c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10017d20], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10017d24], eax
call edi
push eax
call esi
mov dword [0x10017d2c], eax
test eax, eax
je 0x1000e482
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10017d28], eax
mov eax, dword [0x10017d28]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000e4db
cmp dword [0x10017d2c], ecx
je 0x1000e4db
push eax
call esi
push dword [0x10017d2c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000e4db
test ebx, ebx
je 0x1000e4db
call edi
test eax, eax
je 0x1000e4d2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000e4d2
test byte [ebp - 8], 1
jne 0x1000e4db
or dword [ebp + 0x10], 0x200000
jmp 0x1000e50e
mov eax, dword [0x10017d20]
cmp eax, dword [ebp - 0x18]
je 0x1000e50e
push eax
call esi
test eax, eax
je 0x1000e50e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000e50e
mov eax, dword [0x10017d24]
cmp eax, dword [ebp - 0x18]
je 0x1000e50e
push eax
call esi
test eax, eax
je 0x1000e50e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10017d1c]
call esi
test eax, eax
je 0x1000e52a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000e52c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004b85
leave
ret

Function at 0x433004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0xa9e44fd
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x31ff56fe
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4013cf
Capabilities:
Get number of processors

Disassembly:
mov ecx, 0x504be8
jmp 0x4013c3
mov eax, 0x4c50e4
call fcn.00494678
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004014d5
mov eax, dword [0x5005b8]
lea ecx, [esi + 0xa0]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ecx], eax
mov eax, dword [0x5005b8]
mov dword [esi + 0xb0], eax
push 1
mov dword [esi], 0x4cc7cc
or dword [esi + 0x20], 0xffffffff
or dword [esi + 0x1c], 0xffffffff
pop edi
mov dword [esi + 0x28], ebx
push 0xa
mov dword [esi + 0x24], ebx
pop eax
mov byte [ebp - 4], 2
push 0x64
mov dword [esi + 0x58], eax
mov dword [esi + 0x60], eax
pop eax
push 0x504be0
mov dword [esi + 0x2c], 2
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], ebx
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], 0x3e8
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], 0xc0
mov dword [esi + 0x84], 0x6c
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x9c], ebx
call fcn.004af98d
push 0x504be0
lea ecx, [esi + 0xb0]
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
call fcn.004af98d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40aead
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4c5f0c
call fcn.00494678
sub esp, 0x22c
push ebx
push esi
mov dword [ebp - 0x2c], ecx
mov esi, 0x504cb8
push str.DataFile_Types
mov ecx, esi
call fcn.004c25f1
xor ebx, ebx
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x40aee3
xor eax, eax
jmp 0x40b02b
mov eax, dword [0x5005b8]
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x24], 0x100
mov dword [ebp - 0x20], ebx
call edi
cmp eax, 0x103
je 0x40affb
lea eax, [ebp - 0x238]
push eax
push str.DataFile_Types
lea eax, [ebp - 0x10]
push 0x4ebd90
push eax
call fcn.004ad127
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, esi
push ebx
push str.Name
push dword [ebp - 0x10]
push eax
call fcn.004c26a3
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004af93d
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004af7f6
push ebx
push str.Extension
push dword [ebp - 0x10]
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.004c26a3
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004af93d
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004af7f6
push 0xffffffffffffffff
push str.Icon
push dword [ebp - 0x10]
mov ecx, esi
call fcn.004c2637
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], ebx
je 0x40afd4
mov edx, dword [ebp - 0x1c]
cmp dword [edx - 8], ebx
je 0x40afd4
cmp eax, 0xffffffff
je 0x40afd4
push eax
push edx
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.0040b118
lea eax, [ebp - 0x38]
inc dword [ebp - 0x20]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x24], 0x100
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
jmp 0x40af1f
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004af7f6
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004af7f6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004af7f6
push 1
pop eax
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40c181
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
mov edi, 0x4ceb10
push ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, 0x2b4
lea eax, [ebp - 0x2bc]
push esi
push ebx
push eax
call fcn.004946a0
lea eax, [ebp - 8]
add esp, 0xc
neg eax
sbb eax, eax
lea ecx, [ebp - 4]
and eax, ecx
xor ecx, ecx
cmp dword [ebp + 8], ebx
mov eax, dword [eax]
sete cl
or cx, 0x4008
push ecx
lea ecx, [ebp - 0x2bc]
push esi
push ecx
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ecx, [ebp - 8]
mov esi, eax
neg ecx
sbb ecx, ecx
lea eax, [ebp - 4]
and ecx, eax
mov dword [ebp - 8], edi
call fcn.0040c4f5
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40cd6b
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push esi
mov esi, 0x2b4
push edi
push esi
lea eax, [ebp - 0x2b4]
push 0
mov edi, ecx
push eax
call fcn.004946a0
mov eax, dword [ebp + 8]
add esp, 0xc
or ax, 0x4008
push eax
lea eax, [ebp - 0x2b4]
push esi
push eax
push 0
push dword [edi + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2b0]
pop edi
pop esi
leave
ret 4

Function at 0x40e490
Capabilities:
Check os version

Disassembly:
mov eax, 0x4c63ef
call fcn.00494678
sub esp, 0x118
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x1c]
mov esi, ecx
mov dword [ebp - 0x10], esi
push ebx
call fcn.004b3e41
mov eax, dword [0x5005b8]
mov dword [ebp - 4], ebx
mov dword [esi + 0x64], eax
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
mov dword [esi], 0x4cf0e0
jne 0x40e516
mov edi, 0x114
lea eax, [ebp - 0x124]
push edi
push ebx
push eax
call fcn.004946a0
add esp, 0xc
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x40e50f
cmp dword [ebp - 0x120], 5
mov dword [ebp + 0x20], 0x58
jae 0x40e516
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.00494ecd
cmp eax, ebx
pop ecx
mov dword [esi + 0x5c], eax
jne 0x40e52b
call fcn.004ad808
push dword [ebp + 0x20]
mov ecx, esi
push ebx
call fcn.0040e6f0
push eax
call fcn.004946a0
push 0x200002
call fcn.004afdca
mov dword [esi + 0xe8], eax
mov word [eax], bx
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [esi + 0x60], eax
lea edi, [esi + 0x68]
neg eax
sbb eax, eax
mov ecx, esi
add eax, 0x7005
mov word [edi], bx
mov dword [esi + 0xec], ebx
mov dword [esi + 0x3c], eax
call fcn.0040e6f0
mov ecx, dword [ebp + 0x20]
mov dword [eax], ecx
mov ecx, esi
call fcn.0040e6f0
mov ecx, dword [esi + 0xe8]
mov dword [eax + 0x1c], ecx
mov ecx, esi
call fcn.0040e6f0
mov ecx, esi
mov dword [eax + 0x20], 0x100000
call fcn.0040e6f0
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x3c], ecx
mov ecx, esi
call fcn.0040e6f0
mov ecx, esi
mov dword [eax + 0x24], edi
call fcn.0040e6f0
mov ecx, esi
mov dword [eax + 0x28], 0x40
call fcn.0040e6f0
mov ecx, dword [ebp + 0x14]
add eax, 0x34
or ecx, 0x880020
or dword [eax], ecx
test byte [ebp + 0x14], 0x40
je 0x40e5e8
mov ecx, esi
call fcn.0040e6f0
add eax, 0x34
and byte [eax + 2], 0x7f
call fcn.004c2452
mov edi, dword [eax + 0xc]
mov ecx, esi
call fcn.0040e6f0
mov ecx, esi
mov dword [eax + 8], edi
call fcn.0040e6f0
cmp dword [ebp + 0x10], ebx
mov dword [eax + 0x44], 0x40e319
je 0x40e621
push 0x100000
push dword [ebp + 0x10]
push dword [esi + 0xe8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x18], ebx
je 0x40e660
push dword [ebp + 0x18]
lea edi, [esi + 0x64]
mov ecx, edi
call fcn.004af98d
push ebx
mov ecx, edi
call fcn.004afc3b
push 0x7c
push eax
call fcn.00494ea4
pop ecx
cmp eax, ebx
pop ecx
je 0x40e653
mov word [eax], bx
push 0x7c
add eax, 2
jmp 0x40e63d
mov edi, dword [esi + 0x64]
mov ecx, esi
call fcn.0040e6f0
mov dword [eax + 0xc], edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c
Function at 0x416526
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor eax, eax
xor esi, esi
mov byte [ebp - 4], al
mov byte [ebp - 3], al
mov byte [ebp - 2], al
mov byte [ebp - 8], al
mov byte [ebp - 7], al
mov byte [ebp - 6], al
mov byte [ebp - 5], al
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
dec eax
test ecx, ecx
je 0x4166a5
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
inc esi
inc dword [ebp + 8]
cmp esi, 3
mov al, byte [eax]
mov byte [ebp + esi - 5], al
mov dl, byte [ebp - 2]
mov al, byte [ebp - 3]
mov cl, byte [ebp - 4]
jne 0x4165eb
mov dl, cl
mov bl, al
shr dl, 2
mov byte [ebp - 8], dl
mov dl, cl
and dl, 3
shl dl, 4
shr bl, 4
add dl, bl
mov bl, byte [ebp - 2]
mov byte [ebp - 7], dl
mov dl, al
and dl, 0xf
shl dl, 2
shr bl, 6
add dl, bl
mov byte [ebp - 6], dl
mov dl, byte [ebp - 2]
mov bl, dl
and bl, 0x3f
and dword [ebp + 0xc], 0
mov byte [ebp - 5], bl
mov ebx, dword [0x504e4c]
test ebx, ebx
jne 0x4165c7
mov esi, 0x4ceb14
jmp 0x4165d1
mov esi, dword [ebp + 0xc]
movzx esi, byte [ebp + esi - 8]
add esi, ebx
mov bl, byte [esi]
mov edi, dword [edi]
mov esi, dword [ebp + 0x10]
mov byte [edi + esi], bl
mov edi, dword [ebp + 0x14]
inc dword [edi]
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 4
jl 0x4165b6
xor esi, esi
dec dword [ebp - 0xc]
jne 0x41655f
test esi, esi
je 0x4166a5
cmp esi, 3
jge 0x416626
push 3
lea edi, [ebp + esi - 4]
pop ecx
xor eax, eax
sub ecx, esi
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dl, byte [ebp - 2]
mov al, byte [ebp - 3]
mov cl, byte [ebp - 4]
mov edi, dword [ebp + 0x14]
mov bl, cl
and cl, 3
shr bl, 2
mov byte [ebp - 8], bl
mov bl, al
shl cl, 4
shr bl, 4
add cl, bl
and dword [ebp + 8], 0
mov byte [ebp - 7], cl
and al, 0xf
mov cl, dl
and dl, 0x3f
shl al, 2
shr cl, 6
add al, cl
lea ecx, [esi + 1]
test ecx, ecx
mov byte [ebp - 6], al
mov byte [ebp - 5], dl
jle 0x41668d
mov edx, dword [0x504e4c]
test edx, edx
jne 0x41666f
mov eax, 0x4ceb14
jmp 0x416679
mov eax, dword [ebp + 8]
movzx eax, byte [ebp + eax - 8]
add eax, edx
mov edx, dword [edi]
mov ebx, dword [ebp + 0x10]
mov al, byte [eax]
mov byte [edx + ebx], al
inc dword [edi]
inc dword [ebp + 8]
cmp dword [ebp + 8], ecx
jl 0x41665e
cmp esi, 3
jge 0x4166a5
push 4
pop eax
sub eax, ecx
mov ecx, dword [edi]
mov edx, dword [ebp + 0x10]
mov byte [ecx + edx], 0x3d
inc dword [edi]
dec eax
jne 0x416697
mov eax, dword [edi]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x417205
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4186df
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4c6930
call fcn.00494678
push ecx
mov eax, dword [0x5005b8]
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x18], eax
mov eax, dword [0x5005b8]
and dword [ebp - 4], 0
mov dword [esi + 0x20], eax
mov eax, dword [0x5005b8]
mov dword [esi + 0x24], eax
mov eax, dword [0x5005b8]
mov dword [esi + 0x28], eax
mov eax, dword [0x5005b8]
mov dword [esi + 0x2c], eax
mov eax, dword [0x5005b8]
mov dword [esi + 0x30], eax
mov eax, dword [0x5005b8]
mov dword [esi + 0x34], eax
mov eax, dword [0x5005b8]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 7
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], 0x4d0340
mov dword [esi + 0xc], eax
call fcn.0041ba6d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x419c86
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 0x60]
lea ebx, [esi + 4]
mov dword [ebp - 4], eax
push ebx
mov dword [eax], edi
lea eax, [esi + 0x14]
push eax
push edi
push edi
push 0x20
push edi
push edi
push edi
mov dword [esi + 0x5c], edi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x419cbe
or eax, 0xffffffff
jmp 0x419d33
cmp dword [ebp + 0xc], edi
mov dword [esi + 0x5c], 0xa
je 0x419cfa
mov dword [ebp + 8], edi
push 0x64
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x419d04
mov eax, dword [ebp + 0xc]
cmp dword [eax], edi
je 0x419ccd
add dword [ebp + 8], 0x64
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x58]
jl 0x419ccd
push 1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x419d04
push 0xffffffffffffffff
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x5c], 0x64
cmp eax, edi
je 0x419d1b
cmp dword [eax], edi
je 0x419d1b
push 1
pop eax
jmp 0x419d33
mov esi, dword [ebp - 4]
push esi
push dword [ebx]
mov dword [esi], 1
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esi]
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
leave
ret 8