joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ee3c
Capabilities:
Get disk information

Disassembly:
push 0x1c
mov eax, 0x433f4c
call fcn.0042a1a4
mov esi, dword [ebp + 0xc]
mov edi, dword [esi]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp byte [esi + 0x10], bl
je 0x40eec4
mov ecx, dword [ebp + 0x10]
push 3
lea eax, [ebp - 0x28]
xor edi, edi
push eax
inc edi
call fcn.00401f18
mov eax, dword [ebp - 0x28]
cmp word [eax + 2], 0x3a
mov dword [ebp - 4], ebx
jne 0x40eeb7
cmp word [eax + 4], 0x5c
jne 0x40eeb7
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040ee1f
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push dword [ebp - 0x1c]
mov dword [ebp + 0xc], eax
call fcn.00421999
cmp dword [ebp + 0xc], 5
pop ecx
je 0x40eeb5
cmp dword [ebp + 0xc], 2
jne 0x40eeb7
mov edi, dword [esi]
push dword [ebp - 0x28]
or dword [ebp - 4], 0xffffffff
call fcn.00421999
pop ecx
dec edi
je 0x40ef4e
dec edi
je 0x40ef21
push 3
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.004011b0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], 2
call fcn.004240d5
test al, al
jne 0x40ef0a
push 0x43f3b8
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], 0x22995
call fcn.004299f9
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.004013b2
push dword [ebp - 0x1c]
call fcn.00421999
pop ecx
jmp 0x40ef59
add esi, 4
push esi
lea ecx, [ebp - 0x28]
call fcn.004013b2
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 1
call fcn.00425ef3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.004013b2
push dword [ebp - 0x28]
jmp 0x40ef19
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00422565
mov eax, dword [ebp + 8]
call fcn.0042a27c
ret 0xc

Function at 0x40efb4
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [eax + 4], 0
jne 0x40efc3
pop ebp
jmp 0x4267aa
push dword [eax]
push dword [ebp + 8]
call fcn.0042683e
pop ebp
ret 4
push 0x1c
mov eax, 0x436961
call fcn.0042a1a4
mov esi, ecx
and dword [ebp - 0x10], 0
cmp byte [0x448c40], 0
je 0x4267d2
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x426836
cmp dword [ebp + 8], 0
jne 0x4267dc
xor eax, eax
jmp 0x426808
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00401375
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x10], 1
call fcn.0040b8e3
mov eax, dword [eax]
mov dword [ebp - 0x10], 3
push eax
mov ecx, esi
call fcn.004264ec
test byte [ebp - 0x10], 2
mov esi, eax
je 0x426825
push dword [ebp - 0x28]
and dword [ebp - 0x10], 0xfffffffd
call fcn.00421999
pop ecx
test byte [ebp - 0x10], 1
je 0x426834
push dword [ebp - 0x1c]
call fcn.00421999
pop ecx
mov eax, esi
call fcn.0042a27c
ret 4
Function at 0x41143d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
movzx esi, byte [ebp + 8]
neg esi
push edi
sbb esi, esi
and esi, 5
push esi
push 0x406
mov edi, ecx
call fcn.00411204
push esi
push 0x407
mov ecx, edi
call fcn.00411204
push esi
push 0x408
mov ecx, edi
call fcn.00411204
cmp byte [ebp + 8], 0
je 0x4114b5
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push 0
push 0x3f1
push dword [edi + 4]
call esi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 0
push 0x3f9
push dword [edi + 4]
call esi
push eax
call ebx
push 0
push 0x3fb
push dword [edi + 4]
call esi
push eax
call ebx
pop ebx
pop edi
pop esi
pop ebp
ret 4

Function at 0x413d75
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x447f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
xor ecx, ecx
test al, al
sete cl
lea eax, [ebp - 0x164]
dec ecx
and ecx, 0xffffff01
add ecx, 0x100
or ecx, 0x4010
push ecx
push 0x160
push eax
push 0x90
push 0x438732
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a195
leave
ret 4
Function at 0x419330
Capabilities:
Hide graphical window

Disassembly:
push 0x14
mov eax, 0x43519a
call fcn.0042a1a4
mov ebx, ecx
call fcn.004192f3
test al, al
mov byte [ebp - 0xd], al
setne al
dec al
and al, 0x2a
movsx eax, al
push 0
push eax
push 0xcc
push dword [ebx + 8]
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push dword [ebp - 0x14]
push 0xcc
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
push 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call fcn.004011b0
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebx + 8]
call fcn.004270db
push dword [ebp - 0x20]
push dword [ebx + 8]
call fcn.00426ffe
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebx + 0xc]
call fcn.004270db
push dword [ebp - 0x20]
push dword [ebx + 0xc]
call fcn.00426ffe
xor eax, eax
cmp byte [ebp - 0xd], al
mov ecx, ebx
setne al
lea edi, [eax - 1]
and edi, 5
push edi
push 0x3eb
call fcn.00411204
push edi
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x20]
call fcn.00421999
pop ecx
call fcn.0042a27c
ret
Function at 0x41f40b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x41f419
and dword [esi], 0
xor eax, eax
inc eax
cmp dword [ebp + 0x10], 0
jbe 0x41f451
mov eax, 0x8000
cmp dword [ebp + 0x10], eax
jae 0x41f42f
mov eax, dword [ebp + 0x10]
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 0xc]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x41f451
mov ecx, dword [ebp + 0x10]
add dword [esi], ecx
test eax, eax
setne al
movzx eax, al
push eax
call fcn.0041efc7
pop esi
pop ebp
ret 0x10

Function at 0x4206e3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.0042c6c2
mov ecx, dword [ebp + 8]
add esp, 0x18
push eax
mov dword [ecx], eax
call fcn.00420695
pop ebp
ret 0xc

Function at 0x423837
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
pop ebp
ret 8

Function at 0x423b29
Capabilities:
Set file attributes

Disassembly:
push 0x18
mov eax, 0x43480f
call fcn.0042a1a4
xor ebx, ebx
cmp byte [0x448c40], bl
jne 0x423b64
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.004238dc
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call fcn.00423837
push dword [ebp - 0x24]
mov bl, al
call fcn.00421999
mov al, bl
jmp 0x423bc3
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call esi
test eax, eax
je 0x423b7a
mov al, 1
jmp 0x423bc4
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.004011b0
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00425d1f
test al, al
je 0x423bb9
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x18]
mov esi, eax
call fcn.00421999
cmp esi, ebx
setne al
jmp 0x423bc3
push dword [ebp - 0x18]
call fcn.00421999
xor al, al
pop ecx
call fcn.0042a27c
ret 8
Function at 0x423d4b
Capabilities:
Create directory

Disassembly:
push 0x18
mov eax, 0x43480f
call fcn.0042a1a4
xor ebx, ebx
cmp byte [0x448c40], bl
jne 0x423d83
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.004238dc
push dword [eax]
call fcn.0042387c
push dword [ebp - 0x24]
mov bl, al
call fcn.00421999
pop ecx
mov al, bl
jmp 0x423ded
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x423d97
mov al, 1
jmp 0x423ded
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x423deb
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.004011b0
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00425d1f
test al, al
je 0x423de2
push ebx
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x18]
mov esi, eax
call fcn.00421999
cmp esi, ebx
pop ecx
setne al
jmp 0x423ded
push dword [ebp - 0x18]
call fcn.00421999
pop ecx
xor al, al
call fcn.0042a27c
ret 4

Function at 0x423f4e
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x448c40], 0
je 0x423f6e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x423f94
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004238dc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00421999
test esi, esi
pop ecx
setne al
pop esi
leave
ret 4
Function at 0x4241c0
Capabilities:
Get common file path

Disassembly:
push 0x28
mov eax, 0x4364cf
call fcn.0042a1a4
xor edi, edi
mov dword [ebp - 0x10], edi
cmp byte [0x448c40], 0
je 0x42420e
mov esi, dword [ebp + 0x10]
mov eax, 0x104
cmp dword [esi + 8], eax
jg 0x4241ef
push eax
mov ecx, esi
call fcn.004011b0
push dword [esi]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, esi
mov edi, eax
call fcn.00421fe8
mov eax, edi
jmp 0x4242c8
push 3
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00401260
mov dword [ebp - 4], edi
cmp dword [ebp + 0xc], edi
je 0x424244
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
call fcn.004238dc
mov esi, dword [eax]
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 1
jmp 0x424246
xor esi, esi
cmp dword [ebp + 8], edi
je 0x424266
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.004238dc
or dword [ebp - 0x10], 2
mov eax, dword [eax]
mov dword [ebp - 4], 2
jmp 0x424268
xor eax, eax
lea ecx, [ebp - 0x1c]
push ecx
push esi
push eax
call fcn.00424185
test byte [ebp - 0x10], 2
mov esi, eax
je 0x424288
push dword [ebp - 0x28]
and dword [ebp - 0x10], 0xfffffffd
call fcn.00421999
pop ecx
test byte [ebp - 0x10], 1
mov dword [ebp - 4], edi
je 0x42429a
push dword [ebp - 0x34]
call fcn.00421999
pop ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004238b6
mov ecx, dword [ebp + 0x10]
push eax
mov byte [ebp - 4], 3
call fcn.004013e5
push dword [ebp - 0x34]
call fcn.00421999
push dword [ebp - 0x1c]
call fcn.00421999
pop ecx
pop ecx
mov eax, esi
call fcn.0042a27c
ret 0xc
Function at 0x425404
Capabilities:
Get disk information

Disassembly:
push 0x30
mov eax, 0x4367c8
call fcn.0042a1a4
mov ecx, dword [ebp + 8]
call fcn.004218f5
xor ebx, ebx
cmp byte [0x448c40], bl
je 0x4254e6
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
jne 0x42543d
xor al, al
jmp 0x425555
push 3
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.004011b0
mov dword [ebp - 4], ebx
cmp edi, dword [ebp - 0x14]
jl 0x425461
push edi
lea ecx, [ebp - 0x1c]
call fcn.004011b0
push dword [ebp - 0x1c]
push edi
call esi
mov esi, eax
cmp esi, ebx
jne 0x425478
push dword [ebp - 0x1c]
call fcn.00421999
pop ecx
jmp 0x425436
cmp esi, edi
ja 0x42546d
push 3
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.004011b0
xor edi, edi
mov byte [ebp - 4], 1
cmp esi, ebx
jbe 0x4254cc
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + edi*2]
cmp ax, bx
jne 0x4254be
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00401521
mov ecx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x24], ebx
mov word [ecx], ax
jmp 0x4254c7
push eax
lea ecx, [ebp - 0x28]
call fcn.0040141f
inc edi
cmp edi, esi
jb 0x425499
push dword [ebp - 0x28]
call fcn.00421999
push dword [ebp - 0x1c]
call fcn.00421999
cmp dword [ebp - 0x24], ebx
pop ecx
pop ecx
sete al
jmp 0x425555
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x3c], vtable..40.0
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 4], 2
call fcn.00425323
xor esi, esi
mov byte [ebp - 0xd], al
cmp dword [ebp - 0x34], ebx
jle 0x425546
mov eax, dword [ebp - 0x30]
push dword [eax + esi*4]
lea eax, [ebp - 0x28]
push eax
call fcn.00411792
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 3
call fcn.00401521
push dword [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00421999
inc esi
pop ecx
cmp esi, dword [ebp - 0x34]
jl 0x425517
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0040f04e
mov al, byte [ebp - 0xd]
call fcn.0042a27c
ret 4

Function at 0x4257a7
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ecx + 4], 0
je 0x4257c9
cmp byte [ecx + 5], 0
je 0x4257c9
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 4], ecx
mov al, 1
jmp 0x425801
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4257eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4257eb
xor al, al
jmp 0x425800
mov edx, dword [ebp - 4]
xor eax, eax
xor ecx, ecx
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x425bba
Capabilities:
Get common file path

Disassembly:
push 0x30
mov eax, 0x436857
call fcn.0042a1a4
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 4], ecx
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
movzx eax, word [edi]
xor esi, esi
cmp ax, cx
je 0x425be9
inc esi
cmp word [edi + esi*2], cx
jne 0x425be2
mov ebx, eax
cmp esi, 1
jl 0x425d08
cmp ebx, 0x5c
je 0x425d08
cmp ebx, 0x2e
jne 0x425c1a
cmp esi, 1
je 0x425d08
cmp esi, 2
jne 0x425c1a
cmp word [edi + 2], ax
je 0x425d08
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
push 3
lea ecx, [ebp - 0x18]
call fcn.004011b0
and dword [ebp - 4], 0
cmp esi, 3
jle 0x425c57
cmp word [edi + 2], 0x3a
jne 0x425c57
cmp word [edi + 4], 0x5c
jne 0x425c57
cmp ebx, 0x61
jb 0x425c4e
cmp ebx, 0x7a
jbe 0x425caa
add ebx, 0xffffffbf
cmp bx, 0x19
jbe 0x425caa
mov esi, 0x105
cmp dword [ebp - 0x10], esi
jg 0x425c6a
push esi
lea ecx, [ebp - 0x18]
call fcn.004011b0
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.00421fe8
test esi, esi
je 0x425d12
cmp esi, 0x104
ja 0x425d12
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x425caa
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.0040141f
push str.__
lea ecx, [ebp - 0x3c]
call fcn.00401375
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.00401856
push edi
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 2
call fcn.00404bd9
mov ecx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 3
call fcn.004013e5
push dword [ebp - 0x24]
call fcn.00421999
push dword [ebp - 0x30]
call fcn.00421999
push dword [ebp - 0x3c]
call fcn.00421999
push dword [ebp - 0x18]
call fcn.00421999
add esp, 0x10
mov al, 1
call fcn.0042a27c
ret 8
push dword [ebp - 0x18]
call fcn.00421999
pop ecx
xor al, al
jmp 0x425d0a
Function at 0x425fb1
Capabilities:
Get disk information

Disassembly:
push 0x34
mov eax, 0x4368cd
call fcn.0042a1a4
xor ebx, ebx
cmp byte [0x448c40], bl
je 0x426026
mov edi, dword [ebp + 0x1c]
mov esi, 0x104
cmp dword [edi + 8], esi
jg 0x425fdc
push esi
mov ecx, edi
call fcn.004011b0
mov eax, dword [edi]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [edi + 8], esi
jg 0x425ff1
push esi
mov ecx, edi
call fcn.004011b0
mov eax, dword [edi]
push esi
push dword [ebp - 0x10]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, edi
mov esi, eax
call fcn.00421fe8
mov ecx, dword [ebp + 0x1c]
call fcn.00421fe8
cmp esi, ebx
setne al
jmp 0x426109
push 3
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.00401260
push 3
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00401260
push dword [ebp + 8]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00401375
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 2
call fcn.0040b8e3
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x18]
lea ecx, [ebp - 0x28]
push dword [ebp + 0x14]
mov byte [ebp - 4], 3
push dword [ebp + 0x10]
push ecx
push eax
call fcn.00425f4b
push dword [ebp - 0x40]
mov byte [ebp + 0xb], al
call fcn.00421999
push dword [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00421999
pop ecx
pop ecx
cmp byte [ebp + 0xb], bl
je 0x4260f4
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00411792
mov ecx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 4
call fcn.004013e5
push dword [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00421999
pop ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00411792
mov ecx, dword [ebp + 0x1c]
push eax
mov byte [ebp - 4], 5
call fcn.004013e5
push dword [ebp - 0x40]
call fcn.00421999
pop ecx
push dword [ebp - 0x1c]
call fcn.00421999
push dword [ebp - 0x28]
call fcn.00421999
mov al, byte [ebp + 0xb]
pop ecx
pop ecx
call fcn.0042a27c
ret 0x18
Function at 0x42683e
Capabilities:
Set registry value

Disassembly:
push 0x34
mov eax, 0x4369c7
call fcn.0042a1a4
mov edi, ecx
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x10], ebx
cmp byte [0x448c40], bl
je 0x42687f
push dword [ebp + 0xc]
call fcn.0042c2ef
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x42692f
cmp dword [ebp + 0xc], esi
je 0x4268b0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
call fcn.00401375
mov dword [ebp - 4], esi
lea eax, [ebp - 0x28]
push eax
xor esi, esi
lea eax, [ebp - 0x40]
inc esi
push eax
mov dword [ebp - 0x10], esi
call fcn.0040b8e3
push 3
pop ebx
mov dword [ebp - 4], esi
mov esi, dword [eax]
mov dword [ebp - 0x10], ebx
xor eax, eax
cmp dword [ebp + 8], eax
je 0x4268e1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00401375
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
or ebx, 4
push eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], ebx
call fcn.0040b8e3
mov eax, dword [eax]
or ebx, 8
push esi
push eax
mov ecx, edi
call fcn.00426532
mov esi, eax
test bl, 8
je 0x4268fd
push dword [ebp - 0x34]
and ebx, 0xfffffff7
call fcn.00421999
pop ecx
test bl, 4
je 0x42690e
push dword [ebp - 0x1c]
and ebx, 0xfffffffb
call fcn.00421999
pop ecx
test bl, 2
je 0x42691f
push dword [ebp - 0x40]
and ebx, 0xfffffffd
call fcn.00421999
pop ecx
test bl, 1
je 0x42692d
push dword [ebp - 0x28]
call fcn.00421999
pop ecx
mov eax, esi
call fcn.0042a27c
ret 8
Function at 0x4269a5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x436a24
call fcn.0042a1a4
mov edi, ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 4], ebx
mov word [eax], cx
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0xc], ebx
cmp byte [0x448c40], bl
je 0x426a29
lea eax, [ebp + 0xc]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x4269fa
cmp eax, 0xea
jne 0x426ada
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 8]
jl 0x426a0a
push eax
mov ecx, esi
call fcn.004011b0
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0042660b
mov ecx, esi
mov edi, eax
call fcn.00421fe8
jmp 0x426ad8
push 3
pop edi
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.00401260
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
jne 0x426a4a
xor eax, eax
jmp 0x426a79
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.00401375
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 1
call fcn.0040b8e3
mov eax, dword [eax]
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], edi
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00426937
test byte [ebp - 0x10], 2
mov edi, eax
je 0x426a9b
push dword [ebp - 0x3c]
and dword [ebp - 0x10], 0xfffffffd
call fcn.00421999
pop ecx
test byte [ebp - 0x10], 1
mov dword [ebp - 4], ebx
je 0x426aad
push dword [ebp - 0x30]
call fcn.00421999
pop ecx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00411792
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004013e5
push dword [ebp - 0x3c]
call fcn.00421999
push dword [ebp - 0x24]
call fcn.00421999
pop ecx
pop ecx
mov eax, edi
call fcn.0042a27c
ret 8

Function at 0x42802a
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x447f80]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x168], 0
lea eax, [ebp - 0x168]
push eax
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp dword [ebp - 0x168], 0
je 0x4280b8
push 0x4008
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0x80
push dword [ebp - 0x168]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x16c]
test eax, eax
je 0x4280b0
push dword [ebp - 0x168]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x16c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x160]
jmp 0x4280ba
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a195
leave
ret 4
Function at 0x4280c8
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x447f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push 0x4010
push 0x160
lea ecx, [ebp - 0x164]
push ecx
mov ecx, dword [ebp + 0xc]
or ecx, 0x80
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp - 0x160]
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042a195
leave
ret 0xc

Function at 0x428298
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x44ad90]
cmp eax, 0x1c00
jle 0x4282ce
push esi
push 0
lea eax, [ebp - 4]
push eax
mov esi, 0x448d90
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov dword [0x44ad90], eax
pop esi
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
lea eax, [eax + 0x448d90]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
add dword [0x44ad90], eax
leave
ret

Function at 0x4282ea
Capabilities:
Create process memory minidump
Print debug messages

Disassembly:
push 0x14
push 0x4442d0
call fcn.0042c770
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp edi, esi
jne 0x428338
mov dword [ebp - 4], esi
push str.raising_exception_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push esi
push esi
push 0x80000003
call dword [sym.imp.KERNEL32.dll_RaiseException]
push str.writing_minidump_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.dbghelp.dll_MiniDumpWriteDump
call fcn.0042c7b5
ret 8