joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414060
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x547770]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
mov dword [ebp - 0x4c], edi
call fcn.00413c80
add esp, 8
mov dword [ebp - 4], edi
cmp dword [ebp - 0x1c], edi
jne 0x4140cd
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], cx
cmp dword [ebp - 0x18], 8
jb 0x41419f
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x414197
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], edi
jae 0x4140dc
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edx, edx
mov ebx, eax
cmp dword [ebp - 0x50], edi
jle 0x414180
mov ecx, dword [ebx]
mov eax, ecx
mov word [ebp - 0x48], dx
lea edx, [eax + 2]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x4c], edx
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x414110
sub eax, dword [ebp - 0x4c]
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x48]
call fcn.004021e0
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x48]
xor eax, eax
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov ecx, esi
mov word [esi], ax
call fcn.00401720
mov ebx, 8
cmp dword [ebp - 0x34], ebx
jb 0x414165
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b9d66
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], ebx
jb 0x41419f
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x414197
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], dx
cmp dword [ebp - 0x18], 8
jb 0x41419f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b9d66
add esp, 4
mov eax, esi
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.004ba901
mov esp, ebp
pop ebp
ret
Function at 0x4141c0
Capabilities:
Check if file exists
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x547770]
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 dword [ebp - 0x68], ecx
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x414238
cmp edi, 0xffffffff
je 0x414238
push 0x14
push 0x511484
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x6c], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 4], 1
test esi, esi
je 0x414235
cmp esi, 0xffffffff
jne 0x414242
push edi
call ebx
mov eax, 0xa
jmp 0x41432d
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x41427e
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, 0xa
jmp 0x41432d
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x68]
cmp ecx, dword [edx + 0x20]
jne 0x414268
push 0x511484
lea ecx, [ebp - 0x48]
call fcn.00402890
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 2
call fcn.00413e70
add esp, 4
cmp eax, 4
lea ecx, [ebp - 0x48]
sete bl
mov byte [ebp - 4], 1
call fcn.00413a70
test bl, bl
je 0x4142cf
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, 0xb
jmp 0x41432d
push 0x511484
lea ecx, [ebp - 0x48]
call fcn.00402890
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x64]
push edx
mov byte [ebp - 4], 3
call fcn.00414060
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4142f8
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [ebp - 0x64]
sete bl
call fcn.00413a70
lea ecx, [ebp - 0x48]
call fcn.00413a70
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
test bl, bl
je 0x41432b
mov eax, 0xd
jmp 0x41432d
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.004ba901
mov esp, ebp
pop ebp
ret
Function at 0x4146d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507df1
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x547770]
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
push 0x206
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 0x216]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x218], ax
call fcn.004bad00
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [ebp - 0x250], ax
mov edi, 7
lea eax, [ebp - 0x218]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x414756
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x250]
call fcn.004021e0
xor edx, edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
push 0xb
push esi
push 0x511484
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call fcn.00401d30
mov edi, 8
cmp eax, 0xffffffff
je 0x414888
lea eax, [ebp - 0x26c]
push eax
mov ecx, ebx
call fcn.00414350
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.00401720
mov byte [ebp - 4], 1
cmp dword [ebp - 0x258], edi
jb 0x4147ee
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.004b9d66
add esp, 4
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jae 0x414802
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414871
push esi
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x250]
push eax
call fcn.00417c30
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 0x220], edi
jb 0x41483d
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004b9d66
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
cmp dword [ebp - 0x23c], edi
jb 0x41486d
mov eax, dword [ebp - 0x250]
push eax
call fcn.004b9d66
add esp, 4
mov eax, ebx
jmp 0x4148bd
cmp dword [ebp - 0x220], edi
jb 0x414888
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004b9d66
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
cmp dword [ebp - 0x23c], edi
jb 0x4148b8
mov eax, dword [ebp - 0x250]
push eax
call fcn.004b9d66
add esp, 4
mov eax, 1
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.004ba901
mov esp, ebp
pop ebp
ret
Function at 0x4148e0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507e30
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x547770]
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
push 0xf003f
push 0
push 0
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x414931
cmp edi, 0xffffffff
jne 0x414956
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl esi, 0x10
or esi, 4
test edi, edi
je 0x41494f
cmp edi, 0xffffffff
je 0x41494f
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x414a25
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.00414610
cmp dword [eax + 0x14], 8
jb 0x414969
mov eax, dword [eax]
mov ecx, dword [ebx + 0x20]
push 0
push 0
push 0
push 0
push 0
push eax
push 1
push 3
push ecx
push 0xf01ff
push str.WPS_Office_Cloud_Service
push 0x511484
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 1
jb 0x4149ad
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b9d66
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
test esi, esi
je 0x4149ca
cmp esi, 0xffffffff
jne 0x4149fa
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 4
test esi, esi
je 0x4149ef
cmp esi, 0xffffffff
je 0x4149ef
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x414a25
mov ecx, ebx
call fcn.004146d0
push esi
mov ecx, ebx
call fcn.00413340
push esi
mov ecx, ebx
call fcn.00413aa0
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call ebx
push edi
call ebx
push esi
call ebx
push edi
call ebx
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.004ba901
mov esp, ebp
pop ebp
ret
Function at 0x414e80
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
push ebx
mov ebx, dword [eax]
cmp ebx, 0x10
je 0x414e99
cmp ebx, 0x20
jne 0x41508a
shr ebx, 2
mov dword [ebp - 8], ebx
mov edx, 4
cmp ebx, 4
jl 0x414eab
mov edx, ebx
push edi
mov edi, dword [ebp + 8]
lea edx, [edx*4 + 0x1c]
mov dword [ebp - 4], edx
test edi, edi
je 0x415089
mov dword [edi], 0x10
mov dword [edi + 4], edx
add edi, 8
xor edx, edx
push esi
test ebx, ebx
jle 0x414f09
add eax, 5
jmp 0x414ee0
movzx ecx, byte [eax - 1]
movzx esi, byte [eax]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 1]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 2]
shl ecx, 8
or ecx, esi
mov dword [edi + edx*4], ecx
inc edx
add eax, 4
cmp edx, ebx
jl 0x414ee0
mov ecx, dword [edi + edx*4 - 4]
mov esi, ebx
cmp ebx, dword [ebp - 4]
jge 0x414ffd
mov dword [ebp + 8], 0
mov dword [ebp - 0xc], edi
mov eax, esi
cdq
idiv ebx
test edx, edx
jne 0x414f8c
mov eax, dword [ebp + 8]
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx ebx, byte [edx + 0x511f68]
cdq
idiv dword [ebp - 8]
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx eax, byte [eax + 0x511f48]
xor ebx, eax
movzx eax, byte [edx + 0x511f68]
shl ebx, 8
mov edx, ecx
xor ebx, eax
and edx, 0xff
movzx eax, byte [edx + 0x511f68]
shl ebx, 8
shr ecx, 0x18
movzx ecx, byte [ecx + 0x511f68]
xor ebx, eax
shl ebx, 8
xor ecx, ebx
mov ebx, dword [ebp - 8]
jmp 0x414fe2
cmp ebx, 6
jle 0x414fe2
cmp edx, 4
jne 0x414fe2
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + 0x511f68]
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + 0x511f68]
shl edx, 8
xor eax, edx
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + 0x511f68]
shl eax, 8
and ecx, 0xff
movzx ecx, byte [ecx + 0x511f68]
xor eax, edx
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, dword [eax]
inc dword [ebp + 8]
mov dword [edi + esi*4], ecx
inc esi
add eax, 4
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 4]
jl 0x414f22
xor edx, edx
dec esi
js 0x415088
mov eax, dword [ebp - 4]
lea ecx, [edi + eax*4]
mov dword [ebp + 8], ecx
nop
mov ecx, dword [edi + esi*4]
cmp edx, 4
jl 0x415077
cmp esi, 4
jl 0x415077
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx eax, byte [eax + 0x511f68]
mov eax, dword [eax*4 + 0x513568]
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x511f68]
xor eax, dword [ebx*4 + 0x513968]
mov ebx, ecx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x511f68]
xor eax, dword [ebx*4 + 0x513168]
and ecx, 0xff
movzx ecx, byte [ecx + 0x511f68]
xor eax, dword [ecx*4 + 0x513d68]
jmp 0x415079
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add ecx, 4
inc edx
dec esi
mov dword [ebp + 8], ecx
jns 0x415010
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x415830
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x415999
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x415999
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
lea ecx, [edx + edx*2]
mov eax, ebx
sub eax, ecx
mov ecx, 0
setne cl
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], eax
add ecx, edx
add ecx, ecx
add ecx, ecx
mov dword [ebp - 0xc], ecx
test esi, esi
jne 0x415883
pop esi
pop edi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test edx, edx
je 0x4158fe
add edi, 2
mov dword [ebp - 4], edx
nop
movzx edx, byte [edi - 2]
shr edx, 2
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
movzx edx, byte [edi - 2]
movzx eax, byte [edi - 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], dl
movzx eax, byte [edi - 1]
movzx edx, byte [edi]
and eax, 0xf
add eax, eax
add eax, eax
shr edx, 6
or eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 2], al
movzx edx, byte [edi]
and edx, 0x3f
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 3], al
add ecx, 4
add edi, 3
dec dword [ebp - 4]
jne 0x415890
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
dec eax
je 0x415960
dec eax
jne 0x41598f
movzx eax, byte [edi + ebx - 2]
lea edx, [edi + ebx - 2]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
movzx edx, byte [edx]
movzx eax, byte [edi + ebx - 1]
lea ebx, [edi + ebx - 1]
and edx, 3
shl edx, 4
shr eax, 4
or edx, eax
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], dl
movzx eax, byte [ebx]
and eax, 0xf
movzx edx, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov eax, dword [ebp - 0xc]
mov byte [ecx + esi + 2], dl
mov byte [ecx + esi + 3], 0x3d
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + ebx - 1]
shr eax, 2
movzx edx, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], dl
movzx eax, byte [edi + ebx - 1]
and eax, 3
shl eax, 4
movzx edx, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], dl
mov word [ecx + esi + 2], 0x3d3d
mov eax, dword [ebp - 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416100
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507ec6
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x547770]
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 eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
xor edi, edi
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push edi
mov dword [ebp - 0x254], edi
push edx
mov dword [ebp - 0x258], eax
mov word [ebp - 0x218], cx
call fcn.004bad00
add esp, 0xc
push 1
push 0xffffffffffffffff
push 0x511e7c
mov ecx, esi
mov dword [ebp - 0x254], edi
call fcn.00415c50
mov edi, eax
push edi
push 0
lea eax, [ebp - 0x250]
push eax
mov ecx, esi
call fcn.00404f30
mov eax, dword [esi + 0x10]
sub eax, edi
dec eax
push eax
inc edi
push edi
lea ecx, [ebp - 0x234]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00404f30
mov eax, dword [ebp - 0x250]
mov edi, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x23c], edi
jae 0x4161c7
lea eax, [ebp - 0x250]
lea edx, [ebp - 0x254]
push edx
push 0x20019
xor esi, esi
push esi
push eax
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416231
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x258], 0x208
cmp dword [ebp - 0x220], edi
jae 0x416206
lea eax, [ebp - 0x234]
lea ecx, [ebp - 0x258]
push ecx
lea edx, [ebp - 0x218]
push edx
push esi
push esi
push eax
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x254]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 7
xor edx, edx
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x10], esi
lea eax, [ebp - 0x218]
mov word [ebx], dx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x416250
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, ebx
call fcn.004021e0
cmp dword [ebp - 0x220], 8
jb 0x416286
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004b9d66
add esp, 4
xor edx, edx
cmp dword [ebp - 0x23c], 8
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
jb 0x4162b3
mov eax, dword [ebp - 0x250]
push eax
call fcn.004b9d66
add esp, 4
mov eax, ebx
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.004ba901
mov esp, ebp
pop ebp
ret
Function at 0x4164b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507f12
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x547770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x21c], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x220], esi
mov word [esi], ax
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], 1
mov word [ebp - 0x218], cx
call fcn.004bad00
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
je 0x41655d
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416550
jmp 0x4165ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4165be
push 0x208
lea edx, [ebp - 0x218]
push 0
push edx
call fcn.004bad00
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4165be
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4165a0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, esi
call fcn.004021e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba901
mov esp, ebp
pop ebp
ret

Function at 0x417b40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cb18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x547770]
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 esi, dword [ebp + 8]
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x417b7c
mov eax, dword [esi]
jmp 0x417b7e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x417c0f
cmp dword [esi + 0x14], edi
jb 0x417b97
mov eax, dword [esi]
jmp 0x417b99
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push eax
call edi
test eax, eax
jne 0x417c0f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x417c0f
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.004171f0
add esp, 8
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
je 0x417be4
push ecx
call fcn.00417b40
add esp, 4
test eax, eax
jne 0x417bed
lea ecx, [ebp - 0x2c]
call fcn.00413a70
xor eax, eax
jmp 0x417c14
cmp dword [esi + 0x14], 8
jb 0x417bf5
mov esi, dword [esi]
push 0
push esi
call edi
test eax, eax
jne 0x417c07
call ebx
cmp eax, 0xb7
jne 0x417be1
lea ecx, [ebp - 0x2c]
call fcn.00413a70
mov eax, 1
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.004ba901
mov esp, ebp
pop ebp
ret
Function at 0x417c30
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a6b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x547770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.004171f0
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 4], 0
call fcn.00417b40
add esp, 0xc
test eax, eax
jne 0x417c97
cmp dword [ebp - 0x18], 8
jb 0x417c93
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b9d66
add esp, 4
xor eax, eax
jmp 0x417ccd
cmp dword [esi + 0x14], 8
jb 0x417c9f
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x417ca9
mov eax, dword [edi]
jmp 0x417cab
mov eax, edi
mov ecx, dword [ebp + 0x10]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp - 0x18], 8
mov esi, eax
jb 0x417ccb
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b9d66
add esp, 4
mov eax, esi
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.004ba901
mov esp, ebp
pop ebp
ret
Function at 0x419ba0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x547770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.00415a00
test eax, eax
je 0x419d08
push ebx
mov ebx, 1
push edi
test byte [0x54e120], bl
jne 0x419be8
or dword [0x54e120], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [0x54e11c], eax
mov eax, dword [0x54e11c]
push 0xa
push 0x10
push 0x54e0fc
push eax
call fcn.004bb398
push 0xa
push 0x10
push 0x54e0dc
push esi
call fcn.004bb398
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xa
push 0x10
push 0x54e0bc
push eax
call fcn.004bb398
mov ecx, 8
mov esi, str.kcrashdumper.exe
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x28]
add esp, 0x10
push ecx
mov dword [0x54e0b8], ebx
mov dword [0x54e0b4], 0
mov dword [0x54e0b0], 0xc
movsw word es:[edi], word [esi]
call fcn.00415a00
push eax
push 0x51456c
push 0x54d8b0
call fcn.00419b60
call fcn.00415a10
push eax
push 0x54e0dc
push 0x54e0bc
push 0x54e0fc
push 0x54d8b0
push str._s__pid_s__tid_s__exp_s__callfrom1__module_s
push 0x54c7b0
call fcn.00419b80
add esp, 0x2c
push 0x54c79c
push 0x54c758
push 0
push 0
push 0
push ebx
push 0
push 0
push 0x54c7b0
mov edx, 0xa
push 0x54d8b0
mov dword [0x54c758], 0x44
mov dword [0x54c784], ebx
mov word [0x54c788], dx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
mov dword [0x54c750], eax
pop ebx
test eax, eax
je 0x419d08
mov eax, dword [0x54c79c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x54c7a0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [0x54c79c]
push edx
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ba901
mov esp, ebp
pop ebp
ret

Function at 0x41a410
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41a42b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41a462
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x41a45e
jmp 0x41a450
cmp esi, eax
jae 0x41a462
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x41a450
cmp esi, eax
jb 0x41a469
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret