joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ab50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [esp + 0x10], 0
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x40ab75
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor ecx, ecx
mov dword [esp + 0x10], ecx
test esi, esi
je 0x40abf4
lea ecx, [esp + 0x10]
call fcn.0040adf0
cmp esi, 0xffffffff
je 0x40abc1
mov dword [esp + 0x10], esi
call fcn.00410210
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00412c00
add esp, 0x10
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40abf4
cmp ecx, 0xffffffff
je 0x40abf4
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40abf0
mov ebx, dword [esp + 0x14]
cmp ebx, edi
jne 0x40abf0
mov ecx, dword [esp + 0x10]
jmp 0x40abf7
mov ecx, dword [esp + 0x10]
or ebx, 0xffffffff
test ecx, ecx
je 0x40ac49
cmp ecx, 0xffffffff
je 0x40ac49
call fcn.00410210
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
call fcn.00412cd0
mov edi, dword [esp + 0x20]
add esp, 0x10
call fcn.00412e20
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov byte [0x55a6c0], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov byte [0x55a6c0], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ac60
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00409080
test al, al
jne 0x40acd2
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00409080
test al, al
jne 0x40acd2
cmp dword [edi + 0x10], 0x104
jae 0x40acd2
cmp dword [esi + 0x10], 0x104
jae 0x40acd2
cmp dword [esi + 0x14], 8
jb 0x40ac9b
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x40aca3
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40acd2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40acd2
test al, 1
je 0x40accc
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
pop edi
pop esi
pop ebp
ret
pop edi
xor al, al
pop esi
pop ebp
ret
Function at 0x40b980
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x52de80]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [0x55a69c], 0
je 0x40b9ae
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
push 0x18
call fcn.00481491
add esp, 4
test eax, eax
je 0x40b9cb
push ecx
mov ecx, eax
call fcn.0040b8e0
mov dword [0x55a69c], eax
jmp 0x40b9d5
mov dword [0x55a69c], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 8]
call fcn.004045f0
lea eax, [esp + 4]
push eax
call fcn.0040c340
cmp dword [esp + 0x18], 8
jb 0x40ba02
push dword [esp + 4]
call fcn.004814b9
add esp, 4
mov ecx, dword [esp + 0x1c]
mov al, 1
xor ecx, esp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret

Function at 0x40c340
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x3c], 0
mov edx, str._t_n_v_f_r
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [0x55a69c]
lea ecx, [edx + 2]
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], eax
mov word [ebp - 0x38], ax
lea esp, [esp]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40c390
sub edx, ecx
lea ecx, [ebp - 0x38]
sar edx, 1
push edx
push str._t_n_v_f_r
call fcn.00406500
lea eax, [ebp - 0x20]
push eax
push ecx
lea edx, [ebp - 0x38]
mov ecx, esi
call fcn.004114b0
add esp, 8
cmp dword [ebp - 0x24], 8
jb 0x40c3d0
push dword [ebp - 0x38]
call fcn.004814b9
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x40c407
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x3c], 0
cmovae eax, dword [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x3c]
call fcn.0040ba20
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], 8
jb 0x40c418
push dword [ebp - 0x20]
call fcn.004814b9
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004bc45f
mov esp, ebp
pop ebp
ret 4
Function at 0x40d620
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004bf5a0
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x100c]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [ebp - 0x808]
mov dword [ebp - 0x100c], 0
push edx
lea edx, [ebp - 0x1010]
mov dword [ebp - 0x1010], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [ebp - 0x100c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40d76f
mov ecx, dword [ebp - 0x1010]
cmp ecx, 1
jne 0x40d702
cmp word [ebp - 0x808], ax
jne 0x40d6c0
xor ecx, ecx
lea eax, [ebp - 0x808]
push ecx
push eax
mov ecx, edi
call fcn.00406500
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x808]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d6d0
sub ecx, edx
lea eax, [ebp - 0x808]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00406500
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x40d76a
push 0x400
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x40d753
cmp eax, 0x400
ja 0x40d753
lea eax, [ebp - 0x1008]
mov ecx, edi
push eax
call fcn.00404700
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004bc45f
mov esp, ebp
pop ebp
ret 8

Function at 0x40d7c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d7e0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x411dd0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.00409080
test al, al
jne 0x411df7
mov ecx, dword [ebp + 0xc]
call fcn.00409080
test al, al
jne 0x411df7
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.0040ace0
xor al, al
pop ebp
ret
Function at 0x411e00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x411e27
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x411e22
mov eax, dword [ebx]
jmp 0x411e24
mov eax, ebx
mov byte [eax], 0
call fcn.00409080
test al, al
je 0x411e39
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0040aab0
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x411e30
push 0x10000
call fcn.004bb10a
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.004c1572
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x10], edi
test edi, edi
je 0x411ecf
mov eax, dword [ebp + 8]
lea esp, [esp]
test ebx, ebx
je 0x411ea2
sub eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
cmp eax, edi
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
cmovae ecx, edx
push dword [ecx]
mov ecx, ebx
push esi
call fcn.00402270
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x411ee5
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.004c1572
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x411e80
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.004c109b
add esp, 4
test eax, eax
jne 0x411ee8
mov byte [ebp - 1], 1
jmp 0x411eec
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.004c0ffe
add esp, 4
test esi, esi
je 0x411f02
push esi
call fcn.004bbf48
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.0040a850
Function at 0x414330
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
cmp dword [edi + 0x14], 8
jb 0x414342
mov edi, dword [edi]
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x414359
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 1
push ebx
call fcn.004bc552
mov esi, eax
add esp, 8
test esi, esi
je 0x4143d2
push esi
push ebx
push dword [ebp - 8]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4143c9
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4143c9
cmp dword [ebp - 4], 0
je 0x4143c9
push 0x10
call fcn.00481491
add esp, 4
test eax, eax
je 0x4143d2
mov edx, dword [ebp - 4]
movzx ecx, word [edx + 2]
push ecx
movzx ecx, word [edx]
push ecx
push esi
mov ecx, eax
call fcn.004141b0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004bbf10
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414d10
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
mov dword [ebp - 0x224], eax
movzx eax, word [edi + 8]
mov word [ebp - 0x14], ax
movzx eax, word [edi + 0xa]
mov word [ebp - 0x12], ax
call esi
mov word [ebp - 0x10], ax
movzx eax, word [edi + 0xa]
mov word [ebp - 0xe], ax
movzx eax, word [edi + 8]
mov word [ebp - 0xc], ax
mov eax, 0x4e4
mov word [ebp - 0xa], ax
call esi
mov word [ebp - 8], ax
xor esi, esi
mov eax, 0x4e4
mov word [ebp - 6], ax
lea ebx, [ebx]
movzx eax, word [ebp + esi*2 - 0x12]
movzx ecx, word [ebp + esi*2 - 0x14]
add esi, 2
push ebx
push eax
push ecx
push 0x50ccc8
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004c05cb
add esp, 0x1c
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [edi + 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x414de4
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x414dfe
cmp esi, 8
jb 0x414d80
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x414e28
mov ecx, dword [ebp - 0x224]
xor eax, eax
push eax
push edx
call fcn.00406500
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414e30
mov ecx, dword [ebp - 0x224]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.00406500
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret 8
Function at 0x41d740
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x52de80]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x5549c4]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.004bbf48
add esp, 4
mov edi, 0x100
jmp 0x41d7a0
mov esi, dword [0x55b9e4]
xor dl, dl
test esi, esi
jle 0x41d7d8
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x41d7d3
mov eax, dword [esi*4 + 0x55b040]
test eax, eax
je 0x41d7d3
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x41d7b0
dec edi
test edi, edi
jle 0x41d7e1
test dl, dl
jne 0x41d7a0
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret

Function at 0x41fb78
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68
mov eax, dword [0x52de80]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esp + 4]
push edi
mov edi, dword [ebp + 8]
push 0x58
push 0
push eax
call fcn.004bf4f0
push dword [ebp + 0x10]
and dword [esp + 0x2c], 0
lea ecx, [esp + 0x18]
and dword [esp + 0x28], 0
mov edx, esi
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.0041fc48
push 8
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x78]
call fcn.004203e1
mov edx, dword [esp + 0x2c]
push 0x38
pop ecx
shr edx, 3
and edx, 0x3f
push 0x78
sub ecx, edx
pop eax
sub eax, edx
cmp edx, 0x38
mov edx, 0x5549d0
cmovb eax, ecx
lea ecx, [esp + 0x1c]
push eax
call fcn.0041fc48
push 8
lea edx, [esp + 0x80]
lea ecx, [esp + 0x24]
call fcn.0041fc48
push 0x10
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.004203e1
mov ecx, dword [esp + 0x8c]
add esp, 0x20
pop edi
pop esi
xor ecx, esp
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x420d04
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
test edx, edx
je 0x420dcc
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x420dcb
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x420dcb
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x420dcb
mov dword [edx], esi
mov dword [ebx], esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push edi
mov dword [ecx], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x420dcb
push eax
call fcn.004bb10a
mov edi, eax
pop ecx
test edi, edi
je 0x420dcb
push edi
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x420dc4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x50c8fc
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x420dc4
cmp dword [ebp - 8], esi
jbe 0x420dc1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov edx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, dword [ecx + 0x10]
mov dword [edx], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor esi, esi
inc esi
push edi
call fcn.004bbf48
pop ecx
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4212f1
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
mov edi, ecx
push 0x286
push eax
mov word [ebp - 0x28c], ax
lea eax, [ebp - 0x28a]
push eax
call fcn.004bf4f0
add esp, 0xc
lea eax, [ebp - 0x28c]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.kdumpcfg.dat
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42148b
test al, 0x10
jne 0x42148b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [ebp - 0x28c]
push eax
xor ebx, ebx
inc ebx
push ebx
push str.autorecovery
push 0x50e820
call esi
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x28c]
push eax
push 0
push str.checkbrowsercrash
push 0x50e820
call esi
mov dword [edi + 8], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.checkbsod
push 0x50e820
call esi
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.checkdriverversion
push 0x50e820
call esi
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.deletedump
push 0x50e820
call esi
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.enablereport
push 0x50e820
call esi
mov dword [edi], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.scanissuefile
push 0x50e820
call esi
mov dword [edi + 4], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.silentreport
push 0x50e820
call esi
mov dword [edi + 0x18], eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push str.checkonlinesolution
push 0x50e820
call esi
mov dword [edi + 0x20], eax
lea eax, [ebp - 0x28c]
push eax
push 6
push str.bsoddelayhour
push 0x50e820
call esi
mov dword [edi + 0x24], eax
lea eax, [ebp - 0x28c]
push eax
push 0xffff
push 0x50e914
push 0x50e820
call esi
mov dword [edi + 0x28], eax
mov eax, ebx
pop esi
jmp 0x4214b9
and dword [edi + 8], 0
xor ebx, ebx
inc ebx
mov dword [edi + 0x24], 6
mov dword [edi + 0x10], ebx
xor eax, eax
mov dword [edi + 0xc], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x28], 0xffff
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x421c53
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push 0x294
mov eax, 0x4ef27d
call fcn.004bd27f
mov ebx, ecx
push 0x50c8fc
call fcn.00404750
push 0x50cda8
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0042444e
add esp, 0xc
and dword [ebp - 4], 0
lea ecx, [ebp - 0x294]
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push ecx
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x421d74
xor eax, eax
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x298], eax
mov byte [ebp - 4], 1
test byte [ebp - 0x294], 0x10
jne 0x421cf7
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004045f0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00409730
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00402120
lea eax, [ebp - 0x294]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x421cc0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x29c]
mov edi, dword [ebp - 0x2a0]
sub eax, edi
push 0x18
cdq
pop ecx
idiv ecx
mov esi, eax
cmp esi, 0x1e
jbe 0x421d65
test esi, esi
je 0x421d65
push edi
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.00412120
add esp, 0xc
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00402120
add edi, 0x18
dec esi
jne 0x421d2f
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 0
call fcn.004097b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00402120
call fcn.004bd22e
ret
Function at 0x424d95
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x80], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x7c], eax
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x74], edi
test eax, eax
je 0x424f1c
test edi, edi
je 0x424f1c
lea ecx, [ebp - 0x68]
call fcn.00424ae7
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x88]
push ecx
push 4
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x6c], eax
push ecx
push 8
push eax
mov dword [ebp - 0x70], 1
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
xor ebx, ebx
test eax, eax
je 0x424f10
cmp dword [ebp - 0x70], 1
je 0x424e32
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], ebx
push eax
push 1
push 2
push ebx
push 0xb
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x424f10
cmp dword [esi + 8], ebx
jne 0x424eb0
push ecx
push ecx
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call fcn.00425d19
test al, al
jne 0x424e60
cmp dword [ebp - 0x70], 1
je 0x424f10
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x424f10
push 8
xor eax, eax
lea edi, [ebp - 0xa8]
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xa8], 0x20
cmp dword [eax - 0xc], ebx
jne 0x424e8a
lea ecx, [ebp - 0x68]
call fcn.00424c42
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
mov edi, dword [ebp - 0x74]
test eax, eax
je 0x424eb0
mov eax, dword [ebp - 0x8c]
mov dword [esi + 8], eax
push ebx
push dword [ebp - 0x6c]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x424f10
push dword [ebp - 0x7c]
push edi
push ebx
push dword [ebp - 0x78]
push dword [ebp + 0x18]
push ebx
push ebx
push ebx
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x70], 1
mov edi, eax
je 0x424efb
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x78]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
setne bl
lea ecx, [ebp - 0x68]
call fcn.00424b56
mov al, bl
jmp 0x424f1e
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret 0x28