joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4056e0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x210
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp word [ecx], 0
je 0x4057d0
mov esi, ecx
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405756
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x405756
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405756
mov eax, dword [0x4329d4]
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4057e4
push esi
push str.Could_not_delete_service_updater_path:__ls.
push 0x4327c8
call fcn.00408560
add esp, 0xc
lea edi, [ebp - 0x216]
push 0x20a
push 0
push edi
call fcn.0040c1f0
add esp, 0xc
push str.updater.ini
push esi
push edi
call fcn.00407810
add esp, 0xc
test eax, eax
je 0x4057d0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4057d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x4057d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4057d0
mov eax, dword [0x4329d4]
mov ecx, dword [0x431bbc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x405827
push edi
push str.Could_not_delete_service_updater_INI_path:__ls.
push 0x4327c8
call fcn.00408560
add esp, 0xc
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040a9b5
add esp, 0x210
pop esi
pop edi
pop ebp
ret
push 0x4329d4
call fcn.0040a037
add esp, 4
cmp dword [0x4329d4], 0xffffffff
jne 0x405743
mov dword [0x4327c8], 0
push 0x402420
call fcn.0040a1fc
add esp, 4
push 0x4329d4
call fcn.0040a089
add esp, 4
jmp 0x405743
push 0x4329d4
call fcn.0040a037
add esp, 4
cmp dword [0x4329d4], 0xffffffff
jne 0x4057bd
mov dword [0x4327c8], 0
push 0x402420
call fcn.0040a1fc
add esp, 4
push 0x4329d4
call fcn.0040a089
add esp, 4
jmp 0x4057bd
Function at 0x407860
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, ecx
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x8000
push section..rdata
call sub.SHELL32.dll_SHGetKnownFolderPath
xor esi, esi
test eax, eax
js 0x4078aa
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00413ad9
add esp, 4
cmp eax, 0x105
jb 0x4078be
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a9b5
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x105
push ebx
push edi
call fcn.00413f52
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.Mozilla_Maintenance_Service
push edi
call fcn.00424cd0
add esp, 8
test eax, eax
je 0x4078aa
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407902
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4078aa
push str.UpdateLogs
push edi
call fcn.00424cd0
add esp, 8
test eax, eax
je 0x4078aa
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407932
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4078aa
xor esi, esi
inc esi
jmp 0x4078aa
Function at 0x407f50
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
push 5
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x408017
mov ebx, eax
push 4
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x40803d
mov edi, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], 0xcf
imul esi, eax, 0x3e8
test esi, esi
je 0x408065
mov dword [ebp - 0x3c], ebx
xor ebx, ebx
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x407fce
cmp dword [ebp - 0x30], 1
jne 0x407ffa
jmp 0x4080a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
jle 0x408088
lea ecx, [eax - 0x41c]
cmp ecx, 0xa
ja 0x4080d2
mov edx, 0x601
bt edx, ecx
jae 0x4080d2
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0x32
cmp ebx, esi
jb 0x407fac
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
jmp 0x40810b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x429
sete cl
xor ecx, 0xff
cmp eax, 5
mov esi, 0xfd
cmovne esi, ecx
jmp 0x40811a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x408071
cmp edi, 5
je 0x4080a9
cmp edi, 6
jne 0x4080b7
mov esi, 0xec
jmp 0x40811a
mov dword [ebp - 0x40], 0xcf
jmp 0x40810b
cmp edi, 0x7b
je 0x4080b0
cmp edi, 0x424
jne 0x4080b7
mov esi, 0xee
jmp 0x40811a
cmp eax, 0x56
jg 0x4080be
cmp eax, 5
mov ebx, dword [ebp - 0x3c]
je 0x4080e8
cmp eax, 6
jne 0x4080f6
mov eax, 0xd9
jmp 0x408105
mov ebx, dword [ebp - 0x3c]
xor eax, eax
inc eax
jmp 0x408108
mov esi, 0xeb
jmp 0x40811a
mov esi, 0xed
jmp 0x40811a
mov esi, 0xef
jmp 0x40811a
cmp eax, 0x57
mov ebx, dword [ebp - 0x3c]
je 0x4080ef
cmp eax, 0x7a
jne 0x4080f6
mov eax, 0xdb
jmp 0x408105
cmp eax, 0x7c
je 0x4080fd
cmp eax, 0x45b
mov ebx, dword [ebp - 0x3c]
jne 0x4080f6
mov eax, 0xde
jmp 0x408105
mov eax, 0xda
jmp 0x408105
mov eax, 0xdc
jmp 0x408105
mov eax, 0xdf
jmp 0x408105
mov eax, 0xdd
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], eax
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
mov esi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a9b5
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x41c
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x424]
push 0x20a
push 0
push edi
call fcn.0040c1f0
add esp, 0xc
mov ecx, edi
call fcn.00407860
xor esi, esi
test eax, eax
je 0x408194
lea ebx, [ebp - 0x21a]
push 0x20a
push 0
push ebx
call fcn.0040c1f0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, str..status
push ebx
call fcn.00407940
add esp, 4
test eax, eax
jne 0x4081ab
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a9b5
mov eax, esi
add esp, 0x41c
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
push edi
call fcn.00424cd0
add esp, 8
test eax, eax
je 0x408194
sub esp, 0x1c
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
movaps xmm0, xmmword [0x429a80]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x408194
mov edi, eax
mov eax, dword [ebp + 0xc]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.00424df0
add esp, 0xc
push ebx
call fcn.004139b0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x428]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
setne al
lea ecx, [ebp - 0x428]
cmp dword [ecx], esi
sete cl
and cl, al
movzx esi, cl
jmp 0x408194

Function at 0x408240
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x230
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, 0x102
cmp dword [ebp + 0xc], 0
je 0x408307
mov ebx, dword [ebp + 8]
xor esi, esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x4082c1
mov edi, eax
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4082cb
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.00411a0d
add esp, 8
test eax, eax
je 0x4082d5
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408295
mov ebx, 0x490
jmp 0x4082d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4082de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4082d7
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x490
je 0x408305
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
jne 0x40826a
mov esi, 0x102
jmp 0x408307
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a9b5
mov eax, esi
add esp, 0x230
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408370
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov ebx, dword [ebp + 8]
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21a]
push 0x20a
push 0
push edi
call fcn.0040c1f0
add esp, 0xc
push ebx
call fcn.00413ad9
add esp, 4
xor esi, esi
cmp eax, 0x104
ja 0x4083de
mov esi, dword [ebp + 0xc]
push 0x104
push ebx
push edi
call fcn.00413f52
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 3
sete cl
mov dword [esi], ecx
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a9b5
mov eax, esi
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x408560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 8]
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [esi], 0
je 0x4085c9
lea eax, [ebp + 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
inc eax
push dword [esi]
push eax
push 0xd
push str._Warning:
call fcn.004131b8
add esp, 0x10
mov ebx, dword [ebp - 0x14]
mov edi, dword [esi]
call fcn.00401000
push ebx
push 0
push dword [ebp + 0xc]
push edi
push dword [eax + 4]
push dword [eax]
call fcn.0040cb6b
add esp, 0x18
push dword [esi]
xor eax, eax
inc eax
push eax
push 4
push str._n
call fcn.004131b8
add esp, 0x10
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a9b5
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40ad80
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
pushal
push ebp
mov ebp, esp
sub esp, 0x108
mov dword [ebp - 8], 1
mov eax, 0xd
xor ecx, ecx
inc ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 6
mov dword [ebp - 0x34], 0xc
mov eax, 0x6c
mov ecx, 0xc
mov edx, 0x2aaaaaab
push ecx
mov ecx, eax
imul edx
sar edx, 1
sar ecx, 0x1f
sub edx, ecx
mov eax, edx
pop ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x54], 0x3439
mov dword [ebp - 0x44], 0xf3f5759
mov eax, 0x14b
mul dword [ebp - 0x54]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0x5a0a
add dword [ebp - 0x1c], 0x1715
add dword [ebp - 0x1c], 0x318e1
mov dword [ebp - 0x48], 0x26fb
dec dword [ebp - 0x44]
add dword [ebp - 0x18], 0x114f
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0xc]
sub eax, 0xf
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x48]
sub dword [ebp - 0x18], eax

Function at 0x40ae64
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push dword [ecx]
sal bh, cl
int1
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x58], eax
mov eax, 0x27
mov ecx, dword [ebp - 0x14]
cdq
idiv ecx
mov edi, eax
add edi, dword [ebp - 0x48]
mov dword [ebp - 0x24], edi
invalid

Function at 0x419606
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041984f

Function at 0x41d1af
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d1ba
Function at 0x424e40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, dword [0x431014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
push 0x42c4f4
push eax
call fcn.00411f37
add esp, 8
test eax, eax
je 0x424e9e
mov esi, eax
push 2
push 0
push eax
call fcn.004128de
add esp, 0xc
mov ebx, 6
test eax, eax
je 0x424ea5
push esi
call fcn.0041202c
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a9b5
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, 6
jmp 0x424e8a
push esi
call fcn.00412bb5
add esp, 4
test eax, eax
jle 0x424e81
mov edi, eax
inc eax
push eax
call fcn.00409fc3
add esp, 4
mov dword [ebp - 0x1c], eax
xor eax, eax
push eax
push eax
push esi
call fcn.004128de
add esp, 0xc
test eax, eax
je 0x424ee0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00409fcc
add esp, 4
jmp 0x424e81
push esi
push edi
push 1
push dword [ebp - 0x1c]
call fcn.004126c0
add esp, 0x10
cmp eax, edi
mov eax, dword [ebp - 0x1c]
jne 0x424ed5
mov byte [eax + edi], 0
lea edx, [ebp - 0x14]
mov dword [edx], eax
mov ecx, 0x429aa0
mov edi, eax
call fcn.00424c50
test eax, eax
je 0x424f82
mov ebx, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
movzx eax, byte [ebx]
cmp eax, 0x23
je 0x424f2c
cmp eax, 0x3b
jne 0x424f43
mov ecx, 0x429aa0
lea edx, [ebp - 0x14]
call fcn.00424c50
mov ebx, eax
test eax, eax
jne 0x424f1f
jmp 0x424f89
mov al, byte [ebx]
inc ebx
cmp al, 9
je 0x424f41
movzx ecx, al
cmp ecx, 0x20
je 0x424f41
lea edi, [ebx - 1]
mov dword [ebp - 0x18], edi
test al, al
je 0x424f7d
cmp ecx, 0x5b
jne 0x424f77
mov dword [ebp - 0x18], ebx
mov ecx, 0x429aa6
lea edi, [ebp - 0x18]
mov edx, edi
call fcn.00424c50
test eax, eax
jne 0x424fa7
jmp 0x424f9e
test byte [ebp - 0x20], 1
jne 0x424fd2
mov edi, dword [ebp - 0x1c]
jmp 0x424f2c
mov dword [ebp - 0x24], 0
xor eax, eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp + 0x10]
setne al
lea ebx, [eax + eax*4]
mov eax, edi
jmp 0x424ed5
mov dword [ebp - 0x20], 0
jmp 0x424f7d
mov ecx, 0x429aa3
mov edx, edi
call fcn.00424c50
test eax, eax
mov edi, dword [ebp - 0x1c]
jne 0x425053
cmp dword [ebp + 0x18], 0
jne 0x42505f
push str.Strings
jmp 0x425062
mov ecx, 0x429aa8
lea edx, [ebp - 0x18]
call fcn.00424c50
test eax, eax
je 0x424f7d
mov ecx, dword [ebp + 0xc]
mov edx, edi
call fcn.00425080
test eax, eax
js 0x424f7d
mov edi, eax
cmp eax, dword [ebp + 0x10]
jae 0x424f7d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
push eax
call fcn.004139b0
add esp, 4
mov ebx, eax
inc ebx
push ebx
call fcn.00409fc3
add esp, 4
push ebx
push 0
mov ebx, eax
push eax
call fcn.0040c1f0
add esp, 0xc
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + edi*4]
mov dword [ecx + edi*4], ebx
mov ecx, ebx
test eax, eax
je 0x42503f
push eax
call fcn.00409fcc
add esp, 4
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + edi*4]
push dword [ebp - 0x28]
push ecx
call fcn.00413530
add esp, 8
inc dword [ebp - 0x24]
jmp 0x424f7d
mov dword [ebp - 0x20], 0
jmp 0x424f2c
push dword [ebp + 0x18]
push ebx
call fcn.004134a0
add esp, 8
test eax, eax
sete al
mov dword [ebp - 0x20], eax
jmp 0x424f2c
Function at 0x402f1b
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x41f2c4]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x38
mov eax, 0x418836
call fcn.00409d10
xor eax, eax
push 0x206
mov word [ebp], ax
xor ebx, ebx
lea eax, [ebp + 2]
push ebx
push eax
call fcn.00409410
add esp, 0xc
lea esi, [ebp - 0x44]
call fcn.00401eb0
cmp dword [eax + 0x18], 8
jb 0x402f6c
mov eax, dword [eax + 4]
jmp 0x402f6f
add eax, 4
push eax
lea eax, [ebp]
push 0x104
push eax
call fcn.004089f6
add esp, 0xc
push ebx
push 1
lea esi, [ebp - 0x44]
call fcn.00401b32
lea edi, [ebp]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x402f91
mov esi, str.log
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.00408248
pop ecx
pop ecx
test eax, eax
je 0x402fc0
push ebx
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [ebp]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x402fc5
mov esi, str.dump
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp]
push ebx
push eax
movsd dword es:[edi], dword [esi]
call fcn.00408248
pop ecx
pop ecx
test eax, eax
je 0x402ff3
push ebx
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [ebp]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x402ff8
mov esi, str.SoHuVA
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp]
push ebx
push eax
movsd dword es:[edi], dword [esi]
call fcn.00408248
pop ecx
pop ecx
test eax, eax
je 0x403027
push ebx
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp]
push ebx
push eax
call fcn.00408248
pop ecx
pop ecx
test eax, eax
jne 0x40308a
test byte [0x421628], 1
mov edi, 0x421570
jne 0x403084
or dword [0x421628], 1
lea eax, [ebp]
push eax
lea esi, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.00401f38
push ebx
push ebx
push 0x40284f
push ebx
mov eax, esi
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00417f50
push ebx
push 1
call fcn.00401b32
push 0x418a3e
call fcn.00408387
pop ecx
mov dword [0x4214c8], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00407af8
add ebp, 0x20c
leave
ret
Function at 0x4030b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x41f2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
xor ebx, ebx
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.00409410
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.004086e4
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.004086e4
xor ecx, ecx
add esp, 0x10
lea edi, [ebp - 0x210]
dec edi
mov word [eax], cx
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x403125
push 8
pop ecx
mov esi, str.CrashSubmit.exe
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x210]
push ebx
push eax
movsw word es:[edi], word [esi]
call fcn.00408248
pop ecx
pop ecx
test eax, eax
jne 0x4031d6
push 0x40
lea eax, [ebp - 0x264]
push ebx
push eax
call fcn.00409410
xor eax, eax
mov dword [ebp - 0x220], ebx
lea edi, [ebp - 0x21c]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x268]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x268], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x21c], ebx
je 0x4031b8
push dword [ebp - 0x21c]
call esi
cmp dword [ebp - 0x220], ebx
je 0x4031d6
push 0xffffffffffffffff
push dword [ebp - 0x220]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x220]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407af8
leave
ret

Function at 0x40435c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x40436a
push 0xd
pop eax
jmp 0x40439d
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x404371
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40481f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x41f2c4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
push ecx
push dword [esi]
mov dword [ebp - 0x21c], ecx
xor edi, edi
or eax, 0x2001f
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
call fcn.004047e1
mov ebx, eax
cmp ebx, edi
je 0x404885
cmp dword [ebp - 0x214], edi
je 0x40487e
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40491d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4048ad
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040481f
mov dword [ebp - 0x220], eax
cmp eax, edi
jne 0x40492e
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], pe_nt_image_headers32
call ebx
test eax, eax
je 0x40488d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], edi
je 0x4048f8
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], edi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], edi
call fcn.0040499b
mov esi, eax
cmp dword [ebp - 0x214], edi
je 0x40491b
push dword [ebp - 0x214]
call ebx
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407af8
leave
ret 4
cmp dword [ebp - 0x214], edi
je 0x404942
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x40491d

Function at 0x40499b
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x421544], 0
jne 0x4049cb
push 0x41b710
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4049c4
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x421548], eax
mov byte [0x421544], 1
mov eax, dword [0x421548]
test eax, eax
je 0x4049e3
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x4049ef
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4
Function at 0x4056bc
Capabilities:
Get file version info

Disassembly:
push 0x28
mov eax, 0x41841a
call fcn.00409d79
xor edi, edi
push edi
push ebx
call fcn.00408248
pop ecx
pop ecx
test eax, eax
je 0x4056df
xor eax, eax
call fcn.00409dc3
ret
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x4056d7
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.00401e3f
mov eax, esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.00401f17
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x405715
lea eax, [ebp - 0x28]
cmp eax, edi
jne 0x40572a
xor esi, esi
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401e5b
mov eax, esi
jmp 0x4056d9
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x405736
lea eax, [ebp - 0x28]
push eax
push esi
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], edi
jae 0x40574e
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push 0x41b1bc
push eax
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x30]
movzx cx, byte [eax + 0xa]
shl cx, 8
movzx esi, cx
movzx ecx, byte [eax + 8]
or esi, ecx
movzx cx, byte [eax + 0xe]
movzx eax, byte [eax + 0xc]
shl cx, 8
movzx ecx, cx
shl esi, 0x10
or esi, ecx
or esi, eax
jmp 0x40571b

Function at 0x405818
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41f2c4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call fcn.00409410
add esp, 0xc
push 1
push 5
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00401f38
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00407af8
leave
ret