joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a36c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44a517
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44a4f8
mov dl, 1
mov eax, dword [0x4117a4]
call fcn.004031f4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f5c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44a4e7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004383a0
test al, al
je 0x44a4da
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44a528
lea eax, [ebp - 0x254]
call fcn.004088f0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44a4da
xor eax, eax
push ebp
push 0x44a4d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44a560
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44a4bc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041cc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44a4bc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44a4da
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44a3dd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415280
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44a51e
lea eax, [ebp - 0x260]
call fcn.00403f5c
ret

Function at 0x44ae4c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x450bb0]
cmp byte [eax + 0xa5], 0
jne 0x44aebd
cmp dword [0x450bc8], 0
jne 0x44ae7e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44ae08
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x450bc8], eax
cmp dword [0x450bc4], 0
jne 0x44ae99
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x450bc4], eax
cmp dword [0x450bcc], 0
jne 0x44aebd
push esp
push 0
push 0
push 0x44adac
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x450bcc], eax
pop edx
ret
Function at 0x44afb4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44afcb
add esp, 0xfffffff0
call fcn.00403530
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419090
mov eax, dword [0x44ef3c]
cmp word [eax + 2], 0
jne 0x44aff3
mov eax, dword [0x44ef3c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044c68c
mov eax, dword [0x44efe4]
cmp word [eax + 2], 0
jne 0x44b00d
mov eax, dword [0x44efe4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044c884
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411388]
call fcn.004031f4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411388]
call fcn.004031f4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b264]
call fcn.00420eac
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44b194
mov eax, dword [0x44ee64]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042127c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44ce24
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x44ee64]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040bf2c
test eax, eax
je 0x44b102
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004082e4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bf54
test eax, eax
je 0x44b116
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004041cc
mov eax, dword [0x44ed68]
cmp byte [eax], 0
jne 0x44b14a
mov eax, ebx
call fcn.0044b2bc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044d000
mov eax, ebx
call fcn.0044d9c4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44b18a
call fcn.00403588
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44b53c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x450bb0]
cmp dword [eax + 0x30], 0
je 0x44b5e6
cmp dword [ebx + 0x94], 0
jne 0x44b5e0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44b4cc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44b5e0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44b5a6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44b5e0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004136f0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44b5b5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44c148
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44c17d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040404c
jmp 0x44c18a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fb0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44d1dc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44d21d
mov eax, esi
call fcn.00433a60
test al, al
je 0x44d21d
mov eax, dword [ebx + 0x84]
call fcn.00433800
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44d21d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00433800
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401360
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4f238c]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
push ebx
push eax
lea eax, [esp + 8]
push eax
call fcn.004013f0
cmp dword [eax + 0x14], 8
jb 0x40138b
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [esp + 0x18]
test eax, eax
setne bl
cmp edx, 8
jb 0x4013cf
mov ecx, dword [esp + 4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4013c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4013e3
push edx
push ecx
call fcn.0045757d
add esp, 8
mov ecx, dword [esp + 0x1c]
mov al, bl
pop ebx
xor ecx, esp
call fcn.00457808
mov esp, ebp
pop ebp
ret 4
call fcn.004a2f99
int3
Function at 0x4067d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 8
jb 0x4067e6
mov edx, dword [edx]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x18]
push 0
or eax, 0x2001b
push eax
push 0
push 0
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x406812
xor al, al
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x406820
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x14], 8
jb 0x40682b
mov edx, dword [edx]
push ebx
lea eax, [eax*2 + 2]
mov bl, 1
push eax
push ecx
push dword [ebp + 0x14]
push 0
push edx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
xor ecx, ecx
movzx ebx, bl
test eax, eax
cmovne ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4068f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1fbb
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x4f238c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x460], edx
mov esi, ecx
mov dword [ebp - 0x464], esi
xor eax, eax
mov dword [ebp - 0x464], esi
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
push eax
push 2
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x406a1f
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x45c], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x406a18
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0049e790
add esp, 0xc
lea eax, [ebp - 0x45c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4069ed
nop dword [eax]
mov eax, dword [ebp - 0x460]
cmp eax, dword [ebp - 0x454]
je 0x4069d2
lea eax, [ebp - 0x45c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4069b0
jmp 0x4069ed
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004a71d8
add esp, 0xc
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4069f6
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00405100
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [ebp - 0x230]
mov dword [esi + 0x10], 0
mov eax, esi
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x220]
movq qword [esi + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00457808
mov esp, ebp
pop ebp
ret
Function at 0x406a70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
mov eax, dword [0x4f238c]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
xor edi, edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
cmp dword [esi + 0x10], edi
je 0x406ad8
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x406ad8
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x406aef
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.00457808
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x406c80
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x406b10
mov eax, dword [esi]
lea ecx, [esp + 0x44]
push ecx
push eax
call fcn.004a7062
add esp, 8
test eax, eax
jne 0x406c65
cmp dword [ebx + 0x10], eax
je 0x406ca1
push dword [esp + 0x28]
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x406c65
push 0x208
lea eax, [esp + 0x26c]
push 0
push eax
call fcn.0049e790
add esp, 0xc
lea eax, [esp + 0x268]
push 0x104
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x406c65
xor eax, eax
mov dword [esp + 0x260], 0
mov word [esp + 0x250], ax
lea eax, [esp + 0x268]
mov dword [esp + 0x264], 7
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406bb0
sub eax, edx
lea ecx, [esp + 0x250]
sar eax, 1
push eax
lea eax, [esp + 0x26c]
push eax
call fcn.00405100
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x406bde
mov eax, dword [ebx]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x250]
mov ebx, dword [esp + 0x264]
cmp ebx, 8
mov esi, dword [esp + 0x250]
cmovae ecx, esi
push dword [edx + 0x10]
mov edx, dword [esp + 0x264]
push eax
push ecx
call fcn.00404db0
add esp, 0xc
mov dword [esp + 0x1c], eax
cmp ebx, 8
jb 0x406c49
lea ecx, [ebx*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x406c3b
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406ca7
push ecx
push esi
call fcn.0045757d
mov eax, dword [esp + 0x24]
add esp, 8
cmp eax, 0xffffffff
je 0x406c5d
mov eax, dword [esp + 0x28]
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x406b06
mov edi, dword [esp + 0x18]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x474]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00457808
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x28]
jmp 0x406c80
call fcn.004a2f99
int3
Function at 0x407030
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x448
mov eax, dword [0x4f238c]
xor eax, esp
mov dword [esp + 0x444], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x14], edi
mov esi, dword [edx]
test esi, esi
jne 0x407064
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
push 0x208
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.0049e790
add esp, 0xc
lea eax, [esp + 0x240]
push 0x208
push 0
push eax
call fcn.0049e790
add esp, 0xc
mov dword [esp + 0x18], 0x104
xor eax, eax
mov dword [esp + 0x14], 0x104
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
push 0x10
push str.SeDebugPrivilege
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 7
mov word [esp + 0x28], ax
call fcn.00405100
lea ecx, [esp + 0x20]
call fcn.00407220
mov edx, dword [esp + 0x34]
cmp edx, 8
jb 0x40711b
mov ecx, dword [esp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407111
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407214
push edx
push ecx
call fcn.0045757d
add esp, 8
push esi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4071c8
lea ecx, [esp + 0x10]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4071c8
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push 0
push 1
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x40716d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4071c8
push dword [esp + 0xc]
call fcn.004a71cd
mov esi, eax
add esp, 4
test esi, esi
je 0x4071c8
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push esi
push 1
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4071bf
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x248]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x48]
push eax
push dword [esi]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
push esi
call fcn.004a2dbe
add esp, 4
xor eax, eax
mov dword [edi + 0x10], 0
lea ecx, [esp + 0x38]
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4071e2
sub ecx, edx
lea eax, [esp + 0x38]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00405100
mov ecx, dword [esp + 0x44c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00457808
mov esp, ebp
pop ebp
ret
call fcn.004a2f99
int3
Function at 0x407310
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
xor eax, eax
mov dword [ebp - 0x54], 0x44
cmp byte [ebp + 0x14], al
mov ecx, 5
push esi
mov esi, dword [ebp + 8]
mov edx, 2
mov word [ebp - 0x12], ax
xorps xmm0, xmm0
cmovne eax, ecx
movlpd qword [ebp - 0x50], xmm0
mov word [ebp - 0x24], ax
xor ecx, ecx
mov eax, dword [esi + 0x10]
inc eax
movlpd qword [ebp - 0x48], xmm0
mul edx
movups xmmword [ebp - 0x10], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
push edi
movlpd qword [ebp - 0x30], xmm0
seto cl
movlpd qword [ebp - 0x22], xmm0
neg ecx
movlpd qword [ebp - 0x1a], xmm0
or ecx, eax
mov dword [ebp - 0x28], 1
push ecx
call fcn.00457b5c
mov edi, eax
add esp, 4
test edi, edi
jne 0x407393
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
inc eax
push eax
push 0
push edi
call fcn.0049e790
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4073ab
mov esi, dword [esi]
push ebx
push esi
push 0x4e7f3c
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov bl, 1
cmp dword [eax + 0x10], 0
ja 0x4073cb
xor eax, eax
jmp 0x4073d3
cmp dword [eax + 0x14], 8
jb 0x4073d3
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x10], 0
ja 0x4073e0
xor ecx, ecx
jmp 0x4073e8
cmp dword [ecx + 0x14], 8
jb 0x4073e8
mov ecx, dword [ecx]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x54]
push edx
push eax
movzx eax, byte [ebp + 0x18]
push 0
push 0x20
push eax
push 0
push 0
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40740e
xor bl, bl
jmp 0x40745b
cmp byte [ebp + 0x1c], 0
je 0x407429
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x407429
push dword [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40740a
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x407443
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x407443
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40740a
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x40744f
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x28]
test ecx, ecx
je 0x40745b
mov eax, dword [ebp - 8]
mov dword [ecx], eax
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
push edi
call fcn.00434c8a
add esp, 4
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407910
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4f238c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x118
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.0049e790
mov eax, dword fs:[0x2c]
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x234], 0x11c
mov ecx, dword [eax]
mov eax, dword [0x4f61b0]
cmp eax, dword [ecx + 4]
jg 0x407acc
mov eax, dword [0x4f61b4]
test eax, eax
je 0x407a67
lea ecx, [ebp - 0x234]
push ecx
call eax
test eax, eax
jne 0x407a67
cmp dword [ebp - 0x230], 0xa
sete al
test al, al
jne 0x407a67
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0049e790
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407a56
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x4079f0
cmp dword [ebp - 0x110], 1
jne 0x407a56
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457808
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x407a56
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x407a13
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457808
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x407a3d
call fcn.004078b0
test al, al
mov ecx, 3
mov edx, 0xd
cmovne ecx, edx
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457808
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x407a56
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457808
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457808
mov esp, ebp
pop ebp
ret
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x238], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call esi
mov esi, eax
test esi, esi
je 0x407aa8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x238]
push ecx
push eax
call esi
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x238]
jmp 0x407aae
mov ecx, dword [ebp - 0x238]
test ecx, ecx
mov eax, 5
mov ecx, dword [ebp - 4]
mov edx, 0xf
cmovne eax, edx
xor ecx, ebp
pop esi
call fcn.00457808
mov esp, ebp
pop ebp
ret
push 0x4f61b0
call fcn.00457368
add esp, 4
cmp dword [0x4f61b0], 0xffffffff
jne 0x407963
push str.RtlGetVersion
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call esi
push 0x4f61b0
mov dword [0x4f61b4], eax
call fcn.0045731e
add esp, 4
jmp 0x407963
Function at 0x410210
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, ecx
xor ebx, ebx
mov esi, eax
mov cl, byte [ebp + 0xb]
push edi
mov edi, edx
mov dword [ebp - 4], eax
cmp dword [ebp + 8], ebx
jle 0x41036a
nop
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
lea eax, [edx + edx*2]
mov edx, ebx
sub edx, eax
sub edx, 0
je 0x41032d
sub edx, 1
je 0x4102d4
sub edx, 1
jne 0x410360
mov al, byte [edi]
shr al, 6
or al, cl
and al, 0x3f
cmp al, 0x1a
jae 0x41026c
add al, 0x41
jmp 0x410286
cmp al, 0x34
jae 0x410274
add al, 0x47
jmp 0x410286
cmp al, 0x3e
jae 0x41027c
sub al, 4
jmp 0x410286
setne al
lea eax, [eax*4 + 0x2b]
mov byte [esi], al
mov al, byte [edi]
and al, 0x3f
cmp al, 0x1a
jae 0x41029d
add al, 0x41
mov byte [esi + 1], al
add esi, 2
jmp 0x41035f
cmp al, 0x34
jae 0x4102ae
add al, 0x47
mov byte [esi + 1], al
add esi, 2
jmp 0x41035f
cmp al, 0x3e
jae 0x4102bf
sub al, 4
mov byte [esi + 1], al
add esi, 2
jmp 0x41035f
setne al
lea eax, [eax*4 + 0x2b]
mov byte [esi + 1], al
add esi, 2
jmp 0x41035f
mov al, byte [edi]
shr al, 4
or al, cl
and al, 0x3f
cmp al, 0x1a
jae 0x4102f0
add al, 0x41
mov byte [esi], al
inc esi
mov cl, byte [edi]
and cl, 0xf
shl cl, 2
jmp 0x41035f
cmp al, 0x34
jae 0x410303
add al, 0x47
mov byte [esi], al
inc esi
mov cl, byte [edi]
and cl, 0xf
shl cl, 2
jmp 0x41035f
cmp al, 0x3e
jae 0x410316
sub al, 4
mov byte [esi], al
inc esi
mov cl, byte [edi]
and cl, 0xf
shl cl, 2
jmp 0x41035f
setne al
lea eax, [eax*4 + 0x2b]
mov byte [esi], al
inc esi
mov cl, byte [edi]
and cl, 0xf
shl cl, 2
jmp 0x41035f
mov al, byte [edi]
shr al, 2
cmp al, 0x1a
jae 0x41033a
add al, 0x41
jmp 0x410354
cmp al, 0x34
jae 0x410342
add al, 0x47
jmp 0x410354
cmp al, 0x3e
jae 0x41034a
sub al, 4
jmp 0x410354
setne al
lea eax, [eax*4 + 0x2b]
mov byte [esi], al
inc esi
mov cl, byte [edi]
and cl, 3
shl cl, 4
inc edi
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x410230
mov ebx, dword [ebp + 8]
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
sub ebx, eax
je 0x4103bd
and cl, 0x3f
cmp cl, 0x1a
jae 0x41038f
add cl, 0x41
jmp 0x4103ad
cmp cl, 0x34
jae 0x410399
add cl, 0x47
jmp 0x4103ad
cmp cl, 0x3e
jae 0x4103a3
sub cl, 4
jmp 0x4103ad
setne cl
lea ecx, [ecx*4 + 0x2b]
mov byte [esi], cl
inc esi
cmp ebx, 1
jne 0x4103b9
mov byte [esi], 0x3d
inc esi
mov byte [esi], 0x3d
inc esi
mov byte [esi], 0
sub esi, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret