joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4028fe
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4028fe
test al, 0x10
jne 0x4028fe
mov eax, 1
ret
xor eax, eax
ret

Function at 0x402910
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x405e98
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push esi
xor esi, esi
cmp eax, esi
jne 0x402942
xor eax, eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
push 0x5c
push 0x2f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402976
test al, 0x10
je 0x402976
mov esi, 1
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.00402c10
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret

Function at 0x4029a0
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x405ec8
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x402ac4
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x402ac4
push esi
call fcn.00402910
add esp, 4
test eax, eax
je 0x4029fb
mov eax, 1
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push ebx
push esi
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0xc]
push 1
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x40a0a8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0xc]
test eax, eax
sete bl
call fcn.00402c10
test bl, bl
pop ebx
je 0x402a76
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 8]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x1c]
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.00402c10
push 0x5c
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Left
mov ecx, dword [esp + 4]
mov byte [esp + 0x14], 2
push ecx
call fcn.004029a0
add esp, 4
test eax, eax
jne 0x402ad6
lea ecx, [esp + 4]
mov byte [esp + 0x14], al
call fcn.00402c10
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00402c10
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov edx, dword [esp + 0x1c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 4]
mov esi, eax
mov byte [esp + 0x14], 0
call fcn.00402c10
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00402c10
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x405ee9
Capabilities:
Encode data using xor

Disassembly:
sub eax, eax
dec al
or al, al
je 0x405ef5
jne 0x405eeb
jmp 0x405f5c
sub esi, esi
sub ecx, ecx
mov cl, 0xd8
inc esi
dec ecx
jne 0x405efb
call 0x405f04
pop ecx
add ecx, 0x80fc
xor ebx, ebx
xor ebx, 0x2403
push ecx
mov al, byte [ecx]
xor ax, si
mov byte [ecx], al
add ecx, 1
dec ebx
cmp ebx, 0
ja 0x405f14
pop ecx
mov esp, dword fs:[0]
pop dword fs:[0]
leave
jmp ecx
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
Function at 0x100010ad
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100010d4
xor al, al
jmp 0x100010fe
push esi
lea eax, [ebp - 4]
push eax
push 0x100
push 0x10013008
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [0x10013918], eax
mov al, 1
pop edi
pop esi
leave
ret

Function at 0x100011cb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001215
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [0x10013918]
shl eax, 2
push eax
push 0x10013008
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x10001217
xor al, al
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10
push edi
call ebx
test eax, eax
jne 0x100016d6
xor al, al
jmp 0x10001759
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0x10
push esi
call ebx
test eax, eax
jne 0x100016f9
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 0x10
push edi
call ebx
xor al, al
jmp 0x10001758
cmp byte [esi], 0xe9
jne 0x10001707
mov eax, dword [esi + 1]
lea eax, [eax + esi + 5]
jmp 0x10001719
lea eax, [esi + 5]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 5
mov edx, dword [ebp - 8]
sub eax, edx
sub eax, edi
sub eax, 5
lea ecx, [edx + edi]
mov dword [ecx + 1], eax
mov eax, dword [ebp + 0x10]
sub eax, esi
sub eax, 5
mov byte [ecx], 0xe9
mov dword [esi + 1], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
mov byte [esi], 0xe9
push 0x10
push esi
call ebx
lea eax, [ebp - 4]
push eax
push 0x20
push 0x10
push edi
call ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov al, 1
pop esi
pop edi
pop ebx
leave
ret

Function at 0x10001a0d
Capabilities:
Create thread

Disassembly:
push ecx
xor eax, eax
cmp byte [0x10013930], al
jne 0x10001a39
lea ecx, [esp]
push ecx
push eax
push eax
push 0x1000175d
push eax
push eax
mov byte [0x10013930], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop ecx
ret 0xc
Function at 0x401000
Capabilities:
Execute command

Disassembly:
push esi
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
push str.start_https:__www.youtube.com_watch_vaGh78C1j1y8
call esi
add esp, 4
jmp 0x401007

Function at 0x401818
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401857
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401857
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401857
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401857
cmp dword [ecx + 0x74], 0xe
jbe 0x401857
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100061d0
Capabilities:
Read file on windows

Disassembly:
call fcn.10004660
mov ecx, eax
jmp fcn.1000b510

Function at 0x100097c0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x9c]
test edi, edi
je 0x100097e0
nop
push 0x2710
mov ecx, edi
call fcn.10068270
test al, al
je 0x100097d0
mov eax, dword [esi]
test eax, eax
je 0x10009806
push str.UnInitialize
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100097f8
call eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], 0
cmp byte [esi + 0xa4], 0
je 0x10009825
lea ecx, [esi + 4]
call fcn.10066f90
test al, al
je 0x10009825
pop edi
lea ecx, [esi + 4]
pop esi
jmp fcn.1007b390
pop edi
pop esi
ret

Function at 0x10009830
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x100098ac
mov eax, dword [ebp - 4]
test eax, eax
je 0x100098ac
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100098c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012af28
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10193008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1015c304
push 0xc8
push dword [0x101983b8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1000991a
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push dword [0x101983b8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10009904
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [0x101983b8]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.100686c0
push 0x80
push 2
push 0
push 0x40000000
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
call fcn.10068770
mov bl, al
test bl, bl
je 0x100099aa
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.100688a0
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x100099aa
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100099aa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100099aa
mov dword [esi], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.10068730
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000a280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push 0x105
push ecx
push 0x10199aa0
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, dword [sym.imp.USER32.dll_CharNextW]
push 0x10199aa0
call edi
mov ebx, eax
push ebx
call edi
mov esi, eax
mov ax, word [0x10199aa0]
test ax, ax
je 0x1000a2c7
cmp word [ebx], 0x3a
jne 0x1000a2c7
cmp word [ebx + 2], 0x5c
jne 0x1000a2c7
push esi
call edi
mov esi, eax
jmp 0x1000a318
cmp ax, 0x5c
jne 0x1000a305
cmp word [0x10199aa2], ax
jne 0x1000a305
mov ebx, 2
nop dword [eax + eax]
movzx eax, word [esi]
dec ebx
test ax, ax
je 0x1000a30b
mov ecx, eax
nop dword [eax + eax]
cmp cx, 0x5c
je 0x1000a30b
push esi
call edi
mov esi, eax
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x1000a2f0
pop edi
pop esi
xor al, al
pop ebx
ret
cmp word [esi], 0
je 0x1000a305
add esi, 2
test ebx, ebx
jne 0x1000a2e0
test esi, esi
je 0x1000a305
mov ecx, esi
call fcn.1000a120
movzx eax, word [esi]
test ax, ax
je 0x1000a305
cmp eax, 0x5c
je 0x1000a305
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esi, 0x10199aa0
push 0x10199aa0
sar esi, 1
call ebx
mov edi, dword [sym.imp.USER32.dll_CharPrevW]
cmp eax, esi
jle 0x1000a3a8
nop
push 0x10199850
push 0x10199aa0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x1000a375
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [0x10199850], 0x10
je 0x1000a305
push 0x10199aa0
call ebx
lea eax, [eax*2 + 0x10199aa0]
cmp word [eax], 0x5c
je 0x1000a398
push eax
push 0x10199aa0
call edi
cmp eax, 0x10199aa0
ja 0x1000a383
xor ecx, ecx
push 0x10199aa0
mov word [eax], cx
call ebx
cmp eax, esi
jg 0x1000a350
push 0x10199aa0
call ebx
lea eax, [eax*2 + 0x10199aa0]
push eax
push 0x10199aa0
call edi
cmp word [eax], 0x5c
je 0x1000a3d4
push 0x1015c3d8
push 0x10199aa0
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x10199aa0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000a305
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x1000b510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012b1d1
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x10193008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x450]
call fcn.10010c30
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x438]
push 0xb
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
push str.2345PicEdit
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
call fcn.10004bc0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
lea ecx, [ebp - 0x450]
push dword [ebp - 0x428]
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.10004bc0
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 2
call fcn.10004b60
mov byte [ebp - 4], 0
test esi, esi
jne 0x1000b5e4
lea ecx, [ebp - 0x450]
call fcn.100147e0
jmp 0x1000b6e9
cmp esi, 1
jne 0x1000b5f9
lea ecx, [ebp - 0x450]
call fcn.100149c0
jmp 0x1000b6e9
cmp esi, 2
jne 0x1000b6e9
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10104ad0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x207
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.100062e0
push esi
push 0x1015c4f4
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 6
call fcn.10005220
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push 0
cmovae eax, dword [ebp - 0x438]
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x454], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000b6c5
push 0
lea eax, [ebp - 0x458]
mov dword [ebp - 0x458], 0
push eax
push 4
lea eax, [ebp - 0x454]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
push esi
sbb eax, eax
and dword [ebp - 0x454], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x454]
lea ecx, [ebp - 0x450]
call fcn.10014b50
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 7
call fcn.10004b60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 0xffffffff
call fcn.10010c80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10102ce9
mov esp, ebp
pop ebp
ret
Function at 0x1000cbc0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012b548
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10193008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x9c]
cmp esi, 0x64
ja 0x1000cc13
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
nop
push 0
push esi
push 0x7e8
push dword [edi + 4]
call ebx
inc esi
cmp esi, 0x64
jbe 0x1000cc00
push 0x1f8
mov ecx, edi
call fcn.1000d4f0
mov ecx, edi
call fcn.1000dc40
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov byte [ebp - 0x59], 0
call esi
mov edx, eax
mov dword [ebp - 0x48], 0
mov ecx, edx
mov dword [ebp - 0x44], 0
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea ebx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000cc60
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.10004bc0
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x60], 0
call esi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x1000cdb2
cmp dword [ebp - 0x60], 2
jl 0x1000cd70
mov edx, dword [ebx + 4]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ccd2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.10004bc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 3
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x1015c614
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10004bc0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x40]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
mov edx, dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
push eax
push 0
call fcn.10009e00
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10004b60
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.10004b60
cmp esi, 0xffffffff
mov byte [ebp - 4], 0
setne byte [ebp - 0x59]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [ebp - 0x59], 0
je 0x1000cdb2
mov eax, dword [edi + 0x2c]
mov dword [edi + 0xdc], 0xffffffff
cmp dword [eax + 0x14], 0x1f8
jne 0x1000cd9a
mov ecx, edi
call fcn.10007860
push 0xbd0
push dword [edi + 4]
mov dword [edi + 0xd0], 2
call dword [sym.imp.USER32.dll_EndDialog]
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xb
call fcn.10004b60
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10102ce9
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100161f0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012cbac
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push esi
push edi
mov eax, dword [0x10193008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.1001c860
mov dword [edi], eax
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x34]
push 0x10158488
mov word [edi + 0xc], 0
mov dword [edi + 8], 3
call fcn.100062e0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
call fcn.1001c760
mov dword [eax], 0xe
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.10004a60
push str.SMDB
lea ecx, [ebp - 0x4c]
call fcn.100062e0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x4c]
push eax
mov ecx, edi
call fcn.1001c760
mov dword [eax], 7
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.10004a60
push 0x1015cbd8
lea ecx, [ebp - 0x64]
call fcn.100062e0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x64]
push eax
mov ecx, edi
call fcn.1001c760
mov dword [eax], 0x2d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
call fcn.10004a60
push 0x1015cbbc
lea ecx, [ebp - 0x7c]
call fcn.100062e0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call fcn.1001c760
mov dword [eax], 0xa
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.10004a60
push 0x1015c2d8
lea ecx, [ebp - 0x94]
call fcn.100062e0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x94]
push eax
mov ecx, edi
call fcn.1001c760
mov dword [eax], 0x1e
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x94]
call fcn.10004a60
mov dword [ebp - 4], 9
lea ecx, [edi + 0x10]
call fcn.10005050
mov byte [ebp - 4], 0xa
lea esi, [edi + 0x30]
mov ecx, esi
mov dword [ebp - 0x10], esi
call fcn.10005050
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x18]
call fcn.10005050
mov byte [ebp - 4], 0xc
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov byte [esi + 0x44], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001d1e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012dee9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10193008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
call fcn.100050b0
mov dword [ebp - 4], 0
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x1001d392
nop dword [eax]
dec eax
mov dword [ebp + 8], eax
mov al, byte [edi]
inc edi
mov byte [ebp + esi - 0x14], al
inc esi
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x20], edi
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp esi, 3
jne 0x1001d2d4
mov al, cl
xor edi, edi
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shl cl, 4
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
mov byte [ebp - 0x16], cl
and al, 0x3f
mov ecx, 0x10198f68
mov byte [ebp - 0x15], al
call fcn.10004b50
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x1001d2af
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.10010910
inc edi
cmp edi, 4
jl 0x1001d2a5
mov edi, dword [ebp - 0x20]
xor esi, esi
mov dl, byte [ebp - 0xd]
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1001d240
mov dword [ebp + 8], esi
test esi, esi
je 0x1001d392
mov eax, esi
cmp esi, 3
jge 0x1001d30e
cmp eax, 3
jae 0x1001d3a6
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x1001d2f4
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
xor edi, edi
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [esi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x1001d378
mov ecx, 0x10198f68
call fcn.10004b50
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x1001d35e
mov ecx, dword [esi]
movzx eax, byte [ebp + edi - 0x18]
movzx eax, byte [eax + ecx]
mov ecx, ebx
push eax
call fcn.10010910
inc edi
cmp edi, dword [ebp - 0x20]
jl 0x1001d354
mov esi, dword [ebp + 8]
cmp esi, 3
jge 0x1001d392
mov edi, 3
sub edi, esi
push 0x3d
mov ecx, ebx
call fcn.10010910
sub edi, 1
jne 0x1001d384
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.101036b7
int3