joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b605c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x518f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004ae4a3
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004ae4a3
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4b60d3
cmp word [ecx], dx
je 0x4b60d3
mov eax, dword [0x509a24]
push edi
dec eax
push eax
push 0x509910
call fcn.004b5ffb
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4b6146
cmp word [eax], dx
je 0x4b6146
mov eax, dword [edi]
test eax, eax
je 0x4b60f7
cmp word [eax], dx
je 0x4b60f7
lea eax, [ebp - 0x10]
push eax
call fcn.004b59de
jmp 0x4b6100
lea eax, [ebp - 0x10]
push eax
call fcn.004b5a79
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4b6170
mov eax, dword [0x50990c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x509600
call fcn.004b5ffb
add esp, 0xc
test al, al
je 0x4b6170
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4b613b
cmp word [eax], di
je 0x4b613b
lea eax, [ebp - 0x10]
push eax
call fcn.004b59de
pop ecx
jmp 0x4b6172
lea eax, [ebp - 0x10]
push eax
call fcn.004b5a79
jmp 0x4b6138
mov eax, dword [edi]
test eax, eax
je 0x4b615d
cmp word [eax], dx
je 0x4b615d
lea eax, [ebp - 0x10]
push eax
call fcn.004b5975
pop ecx
jmp 0x4b6170
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4b623b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004b5e80
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4b623b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4b623b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4b623b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4b61c8
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004b6f49
test ebx, ebx
je 0x4b6236
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004b6f49
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b623b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b623b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004bc1c3
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4b623d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004831b9
leave
ret
Function at 0x4b6bbb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x50ac4c
push 0x50ac44
push str.FlsAlloc
push 0x1f
call fcn.004b6889
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b6bef
push dword [ebp + 8]
mov ecx, esi
call dword [0x4cc354]
call esi
jmp 0x4b6bf5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4b6c39
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x50ac5c
push 0x50ac54
push str.FlsGetValue
push 0x21
call fcn.004b6889
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b6c70
push dword [ebp + 8]
mov ecx, esi
call dword [0x4cc354]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4b6c78
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x50ac64
push 0x50ac5c
push str.FlsSetValue
push 0x22
call fcn.004b6889
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b6cb2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4cc354]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4c332b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x51a910]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4c336b
cmp byte [ebx], 0xa
jne 0x4c336b
or byte [edi + eax + 0x28], 4
jmp 0x4c3370
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4c346f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4c3452
inc eax
cmp dl, 0xd
je 0x4c339c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4c33c2
cmp eax, ecx
jae 0x4c33d0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4c3384
jmp 0x4c346f
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c344d
cmp dword [ebp - 0x10], 0
je 0x4c344d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x51a910]
test byte [eax + edi + 0x28], 0x48
je 0x4c3427
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4c3412
mov byte [esi], dl
jmp 0x4c3423
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x51a910]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4c346f
cmp byte [ebp - 1], 0xa
jne 0x4c3436
cmp esi, ebx
jne 0x4c3436
mov byte [esi], 0xa
jmp 0x4c346e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004c317d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4c346f
mov byte [esi], 0xd
jmp 0x4c346e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x51a910]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4c346c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4c346f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4c3478
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x51a910]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4c34be
cmp word [ebx], dx
jne 0x4c34be
or byte [eax + edi + 0x28], 4
jmp 0x4c34c3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4c3626
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4c3606
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4c3504
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4c353a
cmp eax, edx
jae 0x4c3548
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4c34df
jmp 0x4c3626
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c3601
cmp dword [ebp - 0x18], 0
je 0x4c3601
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x51a910]
test byte [eax + edi + 0x28], 0x48
je 0x4c35d7
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4c359b
mov word [esi], cx
jmp 0x4c35d2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x51a910]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x51a910]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x51a910]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4c3626
pop eax
cmp word [ebp - 4], ax
jne 0x4c35e7
cmp esi, ebx
jne 0x4c35e7
mov word [esi], ax
jmp 0x4c3623
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004c317d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4c3626
push 0xd
pop eax
jmp 0x4c35e2
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x51a910]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4c3620
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4c3626
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4c8000
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4c802d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c802d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x7673741b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor eax, eax
push ebx
inc eax
cmp dword [0x7673a2c0], 0
push esi
mov ebx, eax
jne 0x76737462
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], eax
jne 0x7673745f
cmp dword [edi + 0x28], 0x464d4520
jne 0x7673745f
mov esi, dword [ebp + 0xc]
push edi
push dword [esi + 0x148]
call sub.GDI32.dll_IsValidEnhMetaRecord
test eax, eax
jne 0x76737468
push 0x76731274
call sub.ntdll.dll_DbgPrint
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov dword [esi + 8], edi
mov eax, dword [edi + 0x30]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x30]
add eax, edi
cmp eax, edi
mov dword [esi + 0x13c], edi
mov dword [esi + 0xe4], eax
jb 0x7673745f
jmp 0x767374b3
mov edi, dword [ebp + 8]
push edi
push dword [esi + 0x148]
call sub.GDI32.dll_IsValidEnhMetaRecord
test eax, eax
je 0x767374c3
mov eax, dword [edi]
cmp eax, 0x61
jg 0x767374b3
push esi
push edi
call dword [eax*4 + 0x7673a0d8]
test byte [esi + 7], 0x80
mov ebx, eax
jne 0x767374d0
lea eax, [ebp + 8]
push eax
push esi
call fcn.767373d9
test eax, eax
jne 0x76737488
jmp 0x767374d0
push 0x76731274
call sub.ntdll.dll_DbgPrint
pop ecx
xor ebx, ebx
mov eax, ebx
jmp 0x76737461

Function at 0x76737685
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x7673a2b8]
push esi
push edi
push 0x27
mov dword [ebp - 4], eax
pop ecx
lea eax, [ebp - 0xa0]
push eax
mov esi, 0x767312d8
lea edi, [ebp - 0xa0]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0xc0]
xor edi, edi
push eax
mov dword [0x7673a2c0], edi
call esi
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xd8]
push eax
push 0x20019
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0xd8], 0x18
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xcc], 0x40
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0xc4], edi
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jl 0x76737777
push 0x767312b0
lea eax, [ebp - 0xc0]
push eax
call esi
lea eax, [ebp - 0xdc]
push eax
push 0x14
lea eax, [ebp - 0xb4]
push eax
push 2
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0xb8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
jl 0x7673776b
cmp dword [ebp - 0xac], 4
jne 0x7673776b
cmp dword [ebp - 0xb0], 4
jne 0x7673776b
mov eax, dword [ebp - 0xa8]
mov dword [0x7673a2c0], eax
push dword [ebp - 0xb8]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.76738d93
leave
ret
Function at 0x401de2
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46798a
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4977b8]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x4977b8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
and dword [esp + 0xc], 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call dword [eax + 0xb8]
and dword [esp + 0x38], 0
push eax
push edi
mov ecx, esi
call fcn.0041c0e5
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.00409522
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0044a9a4
mov esp, ebp
pop ebp
ret 4

Function at 0x401ef1
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041ede3
Function at 0x403961
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x4977b8]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
mov esi, ecx
cmp byte [esi + 0x2d0], 0
je 0x4039ce
push 0x110
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0044f0d0
add esp, 0xc
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 5
jne 0x4039be
mov ecx, esi
call fcn.00403667
jmp 0x4039d0
cmp dword [esp + 0xc], 6
jb 0x4039ce
mov ecx, esi
call fcn.00402eaf
jmp 0x4039d0
xor eax, eax
mov ecx, dword [esp + 0x124]
pop esi
xor ecx, esp
call fcn.0044a9a4
mov esp, ebp
pop ebp
ret
Function at 0x4083e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46795a
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4977b8]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x4977b8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or ebx, 0xffffffff
cmp dword [ebp + 8], ebx
jne 0x408431
xor eax, eax
jmp 0x4085b3
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40845f
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40845f
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x4085b3
cmp dword [esi + 0x50], 0
je 0x4085b1
mov ecx, esi
call fcn.00409821
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0x40], ecx
jne 0x408493
push dword [esi + 0x50]
movsx eax, al
push eax
call fcn.0044b492
pop ecx
cmp eax, ebx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x4085b1
push ecx
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x2c], cl
push 8
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b], al
mov dword [esp + 0x44], 0xf
call fcn.00409e22
and dword [esp + 0x50], 0
lea eax, [esi + 0x48]
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x3c]
mov esi, dword [esi + 0x40]
cmp edi, 0x10
mov edi, dword [esi]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x2c]
cmovae ecx, dword [esp + 0x2c]
lea edx, [esp + 0x2c]
cmovae edx, dword [esp + 0x2c]
add eax, ecx
push eax
push edx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
push dword [esp + 0x3c]
mov ecx, esi
call dword [edi + 0x1c]
test eax, eax
js 0x4085a8
cmp eax, 1
jg 0x408589
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp edi, 0x10
lea eax, [esp + 0x28]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x1c], edx
je 0x408556
push dword [esi + 0x50]
lea eax, [esp + 0x2c]
push edx
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call fcn.0044bae5
mov edx, dword [esp + 0x2c]
add esp, 0x10
cmp edx, eax
jne 0x4085a8
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x13]
mov byte [esi + 0x45], 1
cmp dword [esp + 0x20], eax
jne 0x408584
test edx, edx
jne 0x4084c3
cmp dword [esp + 0x38], 0x20
jae 0x4085a8
push edx
push 8
lea ecx, [esp + 0x30]
call fcn.00409026
jmp 0x4084bf
mov ebx, dword [ebp + 8]
jmp 0x4085a8
cmp eax, 3
jne 0x4085a8
mov eax, dword [esp + 0x14]
push dword [eax + 0x50]
movsx eax, byte [esp + 0x17]
push eax
call fcn.0044b492
pop ecx
cmp eax, ebx
cmovne ebx, dword [ebp + 8]
pop ecx
lea ecx, [esp + 0x28]
call fcn.00407d52
mov eax, ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0044a9a4
mov esp, ebp
pop ebp
ret 4
Function at 0x408d80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x467aa5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4977b8]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov eax, dword [0x4977b8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
lea ecx, [esp + 0xc]
call fcn.0042a82c
pop ecx
and dword [esp + 0x30], 0
cmp dword [esp + 0x1c], 0x10
lea eax, [esp + 8]
cmovae eax, dword [esp + 8]
push eax
mov ecx, esi
call fcn.0040990d
lea ecx, [esp + 8]
call fcn.00407d52
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0044a9a4
mov esp, ebp
pop ebp
ret

Function at 0x409689
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4674ca
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4977b8]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x4977b8]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x4097d6
cmp byte [esi + 0x45], bl
je 0x4097d6
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4096ed
xor al, al
jmp 0x4097d8
push ebx
push 8
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00409e22
lea eax, [esi + 0x48]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
mov ecx, dword [ecx + 0x40]
push eax
mov eax, dword [esp + 0x34]
lea edi, [esp + 0x24]
cmovae edi, edx
lea esi, [esp + 0x24]
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
push dword [esp + 0x24]
call dword [edx + 0x20]
sub eax, ebx
je 0x409757
dec eax
jne 0x4097bc
mov esi, dword [esp + 0x14]
jmp 0x40975e
mov esi, dword [esp + 0x14]
mov byte [esi + 0x45], bl
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub edi, eax
je 0x40979d
push dword [esi + 0x50]
cmp ecx, 0x10
push edi
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call fcn.0044bae5
add esp, 0x10
cmp edi, eax
jne 0x4097c5
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
cmp byte [esi + 0x45], 0
je 0x4097c3
test edi, edi
jne 0x40971c
push ebx
push 8
lea ecx, [esp + 0x28]
call fcn.00409026
jmp 0x409714
dec eax
dec eax
jne 0x4097c9
inc eax
jmp 0x4097c7
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x20]
call fcn.00407d52
mov al, bl
jmp 0x4097d8
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0044a9a4
mov esp, ebp
pop ebp
ret
Function at 0x40c51b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x40c52d
push 0xd
pop eax
jmp 0x40c55f
push ebx
mov ecx, edx
push edi
lea edi, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40c536
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x40db8b
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
call fcn.0043dc06
push 1
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [edi + 0x68]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push dword [edi + 0x58]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
ret
Function at 0x41315f
Capabilities:
Create thread
Resume thread

Disassembly:
push 0x34
mov eax, 0x46a9ea
call fcn.0044fc53
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x18]
push eax
push 4
push edx
push 0x43ec66
push 0
push 0
call fcn.0044e0e4
add esp, 0x18
test eax, eax
je 0x4131b3
mov ecx, dword [esi]
xor edx, edx
add ecx, 4
inc edx
lock xadd dword [ecx], edx
mov ecx, dword [esi]
push eax
add ecx, 8
call fcn.00412eff
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
call fcn.0044fc02
ret
lea ecx, [ebp - 0x3c]
call fcn.00401ac7
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0040a74c
int3

Function at 0x414070
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x469064
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x106c
call fcn.0045cd80
mov eax, dword [0x4977b8]
xor eax, esp
mov dword [esp + 0x1068], eax
push ebx
push esi
push edi
mov eax, dword [0x4977b8]
xor eax, esp
push eax
lea eax, [esp + 0x1080]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push ebx
push edi
mov dword [esp + 0x18], eax
lea eax, [ecx + 0x150]
push str.Bootstrapper::CreateProcess_module___S__args___S
push eax
call fcn.00408d80
push 0x40
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0044f0d0
add esp, 0x1c
xor eax, eax
push 0xffe
push eax
mov word [esp + 0x7c], ax
lea eax, [esp + 0x7e]
push eax
mov dword [esp + 0x20], 0x44
call fcn.0044f0d0
add esp, 0xc
cmp word [edi], 0x22
mov esi, 0x800
lea eax, [esp + 0x74]
je 0x414147
push 0x47d0e4
push esi
push eax
call fcn.0044cfba
add esp, 0xc
lea eax, [esp + 0x74]
push edi
push esi
push eax
call fcn.0044d016
add esp, 0xc
lea eax, [esp + 0x74]
push 0x47d0e4
push esi
push eax
call fcn.0044d016
jmp 0x41414f
push edi
push esi
push eax
call fcn.0044cfba
add esp, 0xc
lea eax, [esp + 0x74]
push 0x47d0e8
push esi
push eax
call fcn.0044d016
add esp, 0xc
lea eax, [esp + 0x74]
push ebx
push esi
push eax
call fcn.0044d016
add esp, 0xc
lea eax, [esp + 0x5c]
push edi
push str.CreateProcess__S_failed
push eax
call fcn.0042a994
add esp, 0xc
mov esi, eax
push dword [esp + 0x10]
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
push 0x20
push ecx
push ecx
push ecx
lea eax, [esp + 0x94]
push eax
push ecx
mov dword [esp + 0x10b0], ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4141bc
mov ecx, esi
call fcn.00427e7f
lea ecx, [esp + 0x5c]
call fcn.00407d52
mov ecx, dword [esp + 0x1080]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1068]
xor ecx, esp
call fcn.0044a9a4
mov esp, ebp
pop ebp
ret 0xc