joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434980
Capabilities:
Compare security identifiers

Disassembly:
push 0x100
mov eax, 0x44a92f
call fcn.0043bc61
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xf4], 0x401524
xor ebx, ebx
call fcn.004253b2
mov dword [ebp - 0xf4], 0x4014c0
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
push ebx
push 0x2001f
push 0x407880
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xf4]
mov dword [ebp - 4], ebx
call fcn.00429520
test eax, eax
js 0x434ae2
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf8], ebx
push eax
push ebx
push ecx
lea ecx, [ebp - 0xf4]
call fcn.00434b0d
cmp eax, 0x7a
jne 0x434ae2
push 0x4084c8
push dword [ebp - 0xf8]
call fcn.0043b996
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x434acd
lea eax, [ebp - 0xf8]
push eax
push esi
push ecx
lea ecx, [ebp - 0xf4]
call fcn.00434b0d
test eax, eax
jg 0x457c9d
js 0x434acd
lea eax, [ebp - 0x10c]
mov dword [ebp - 0xfc], ebx
push eax
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x457cac
cmp dword [ebp - 0x104], 0
je 0x434acd
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push 0x1a
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
test eax, eax
je 0x457cac
mov edi, ebx
lea eax, [ebp - 0x100]
push eax
push edi
push dword [ebp - 0xfc]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetAce]
test eax, eax
je 0x434acd
mov eax, dword [ebp - 0x100]
add eax, 8
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
test eax, eax
jne 0x434af5
inc edi
test bl, bl
je 0x434a98
mov byte [ebp - 4], 1
push esi
mov esi, dword [0x402f60]
mov ecx, esi
call dword [0x4a3670]
call esi
lea ecx, [ebp - 0xf4]
call fcn.0042535f
mov al, bl
call fcn.0043bc10
ret
mov eax, dword [ebp - 0x100]
mov ecx, 0xf003f
mov eax, dword [eax + 4]
and eax, ecx
cmp eax, ecx
jne 0x434ac8
mov bl, 1
jmp 0x434ac8
movzx eax, ax
or eax, 0x80070000
test eax, eax
jmp 0x434a37
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x434acd
Function at 0x436e14
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
xor ebx, ebx
mov dword [ebp - 8], esi
push edi
mov dword [ebp - 0x10], ebx
mov ecx, ebx
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edi
movzx eax, word [eax + 4]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x459c10
mov eax, ebx
mov edi, ebx
test eax, eax
jne 0x459c3b
mov esi, dword [ebp - 0x14]
mov ecx, ebx
mov eax, dword [ebp - 8]
movzx esi, word [esi + 6]
mov eax, dword [eax + 0x1c]
test esi, esi
jne 0x459d23
mov eax, edi
mov dword [edx + 0x10], ebx
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, edi
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
cmp dword [eax], edx
mov edx, dword [ebp - 4]
jne 0x459c67
cmp dword [ebp + 0xc], ebx
je 0x459c4c
cmp dword [esi + 0x20], ebx
je 0x459c4c
test byte [eax + 4], 1
jne 0x459c67
imul esi, ecx, 0xc
lea edi, [ebp - 0x24]
add esi, dword [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0xc], ebx
je 0x459c7f
mov eax, dword [ebp - 8]
cmp dword [eax + 0x20], ebx
je 0x459c7f
push 0xc
jmp 0x459c81
test byte [eax + 4], 1
lea edi, [ebp - 0x24]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x459c77
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], 1
inc ecx
add eax, 0xc
cmp ecx, edi
jb 0x459c15
mov eax, dword [ebp - 0x10]
jmp 0x436e4b
xor eax, eax
inc eax
jmp 0x436e4b
push 8
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
pop eax
mov eax, dword [eax + ecx]
test al, 4
je 0x459c98
and esi, 0xffffcfff
mov dword [ebp - 0x20], esi
test al, 2
je 0x459ca5
and esi, 0xfffff3ff
mov dword [ebp - 0x20], esi
test al, 1
je 0x459cb2
and esi, 0xfffffcff
mov dword [ebp - 0x20], esi
test al, 8
je 0x459cc2
and esi, 0xc0ffffff
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esi
lea ecx, [ebp - 0x24]
mov edi, ebx
call fcn.0045ede7
mov edx, dword [ebp - 4]
test eax, eax
je 0x436e55
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0xc], eax
mov eax, esi
shr eax, 0x1e
mov dword [edx + 8], eax
mov eax, esi
shr eax, 0x18
and al, 0x3f
mov byte [edx + 4], al
mov eax, esi
shr eax, 1
and eax, 1
mov dword [edx + 0x14], eax
mov eax, esi
shr eax, 0xc
and eax, 3
jne 0x459d19
mov eax, esi
shr eax, 0xa
and eax, 3
jne 0x459d19
shr esi, 8
and esi, 3
je 0x459d1b
mov dword [edx], esi
jmp 0x459d1b
mov dword [edx], eax
xor edi, edi
inc edi
jmp 0x436e55
mov edx, dword [ebp + 8]
cmp dword [eax], edx
mov edx, dword [ebp - 4]
je 0x459d3a
inc ecx
add eax, 0x10
cmp ecx, esi
jb 0x459d23
jmp 0x436e6c
xor ebx, ebx
inc ebx
jmp 0x436e6c
Function at 0x43a79a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x4a1378], 0
jne 0x43a86d
cmp byte [0x4a1379], 0
jne 0x43a86d
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push eax
push 0x20019
xor ebx, ebx
mov edx, reloc.OLEAUT32.dll_SysReAllocString
push ecx
inc ebx
push 0x407210
mov byte [0x4a1378], bl
call fcn.0043fa36
test eax, eax
jne 0x43a86c
push esi
push 4
pop esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x40aba4
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x43a81c
cmp dword [ebp - 0xc], esi
jne 0x43a81c
cmp dword [ebp - 0x14], eax
ja 0x43a81e
xor bl, bl
cmp dword [0x4a28b4], 0
mov byte [0x4a1379], bl
mov dword [ebp - 8], esi
ja 0x43a862
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x40abbc
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x43a862
cmp dword [ebp - 0xc], esi
jne 0x43a862
cmp dword [ebp - 0x10], eax
jbe 0x43a862
push dword [ebp - 0x10]
call fcn.00474a9c
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
pop esi
pop ebx
leave
ret

Function at 0x43bd84
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x497c08
call fcn.0043c038
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x43bde4
cmp eax, 0xffffffff
je 0x43bde4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x43bddd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x43bddd
cmp edx, 0x10000000
jae 0x43bddd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x43bdda
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43be40
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x43be7e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x43be76
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x43be80
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x43be66
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x43bf50
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x43bf81
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x43bf81
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x43bf81
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x43d64e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4a0cb8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40b890]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0xc], eax
mov ax, word [0x40b894]
lea ecx, [ebp - 0x10]
xor edi, edi
mov word [ebp - 8], ax
mov ax, word [ebp + 8]
push dword [esi + 4]
mov word [ebp - 0xc], ax
mov eax, dword [esi]
push ecx
push edi
push 0x2001f
push edi
push edi
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], edi
push ecx
push dword [eax]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x43d733
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 3
push eax
push 4
push edi
push 0x409640
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov eax, dword [esi + 8]
mov ecx, 0x409654
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43d6f7
test dx, dx
je 0x43d6f3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43d6f7
add eax, 4
add ecx, 4
test dx, dx
jne 0x43d6d1
mov eax, edi
jmp 0x43d6fc
sbb eax, eax
or eax, 1
test eax, eax
je 0x43d733
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x43d70a
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push edi
push 0x40965c
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
lea ecx, [ebp - 0x10]
call fcn.00435dad
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043b590
leave
ret 4
Function at 0x43e1b0
Capabilities:
Set registry value

Disassembly:
push 0x234
mov eax, 0x44be65
call fcn.0043bc61
mov dword [ebp - 0x22c], edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x220], eax
push ecx
lea eax, [ebp - 0x218]
xor ebx, ebx
push eax
mov esi, 0x409680
mov dword [ebp - 4], ebx
push esi
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x224], ebx
call fcn.0043f983
test al, al
je 0x43e1fd
lea esi, [ebp - 0x218]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x43e357
cmp byte [ebp + 0xc], bl
je 0x43e31a
lea eax, [ebp - 0x228]
mov dword [ebp - 0x21c], ebx
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp - 0x220]
push dword [ebp - 0x224]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x43e30f
push 4
pop esi
push esi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 3
push eax
push esi
push ebx
push 0x409640
push dword [ebp - 0x21c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov eax, dword [ebp - 0x22c]
mov ecx, 0x409654
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43e2bf
test dx, dx
je 0x43e2bb
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43e2bf
add eax, esi
add ecx, esi
test dx, dx
jne 0x43e29b
mov eax, ebx
jmp 0x43e2c4
sbb eax, eax
or eax, 1
test eax, eax
je 0x43e30f
mov ecx, dword [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x43e2d1
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [ebp - 0x220]
push 1
push ebx
push 0x40965c
push dword [ebp - 0x21c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
lea ecx, [ebp - 0x21c]
call fcn.00435dad
jmp 0x43e357
lea ecx, [ebp - 0x21c]
call fcn.00435dad
lea eax, [ebp - 0x224]
mov ecx, edi
mov dword [ebp - 0x240], eax
lea edx, [ebp - 0x240]
lea eax, [ebp - 0x228]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x234], eax
call fcn.0043d521
lea ecx, [ebp - 0x224]
call fcn.00435dad
call fcn.0043bc10
ret 8
Function at 0x43fc77
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 1
push esi
push 0x4076e8
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
mov dword [ebp - 4], esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x43fcea
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push esi
push 0x40ab8c
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x43fce1
cmp dword [ebp - 8], 4
jne 0x43fce1
test edi, edi
je 0x43fcde
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x446601
Capabilities:
Get disk information

Disassembly:
push 0x22c
mov eax, 0x44fdea
call fcn.0043bccd
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1ec]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00466bcd
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1ec]
mov eax, dword [ebp - 0x1ec]
mov eax, dword [eax - 0xc]
dec eax
push eax
call fcn.0042e686
movzx eax, ax
cmp eax, 0x2a
jne 0x446661
mov eax, dword [ebp - 0x1ec]
push ecx
lea ecx, [ebp - 0x1ec]
mov eax, dword [eax - 0xc]
dec eax
push eax
call fcn.0048507a
jmp 0x44667b
cmp eax, 0x5c
je 0x44667b
cmp eax, 0x2f
je 0x44667b
push 0x406fdc
lea ecx, [ebp - 0x1ec]
call fcn.004719e0
lea ecx, [ebp - 0x238]
call fcn.0042584c
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
mov ecx, dword [edi + 0x60]
push eax
lea eax, [ebp - 0x1ec]
push eax
call fcn.0041a3d3
test eax, eax
jne 0x4466b8
cmp dword [ebp - 0x224], eax
jne 0x446781
xor esi, esi
inc esi
jmp 0x446781
cmp eax, 1
jne 0x446781
push ecx
lea ecx, [ebp - 0x1e8]
call fcn.0042f0d7
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1e8]
push dword [ebp - 0x1ec]
call fcn.00469a65
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x1e8]
call fcn.0042beea
mov eax, dword [ebp - 0x204]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x20c]
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x1f0]
call fcn.00423364
push 3
lea eax, [ebp - 0x1f4]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x1f0]
call fcn.004224ed
push eax
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 5
call fcn.004258e2
mov ecx, dword [ebp - 0x1f4]
lea ecx, [ecx - 0x10]
call fcn.00429900
push 0xa
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x1f0]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
mov ecx, dword [ebp - 0x1f0]
neg eax
sbb esi, esi
add ecx, 0xfffffff0
inc esi
call fcn.00429900
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 2
call fcn.004220ba
lea ecx, [edi + 4]
call fcn.0042437b
mov edx, eax
lea ecx, [ebp - 0x200]
call fcn.0045eb44
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 6
call fcn.0042437b
mov edx, eax
lea ecx, [ebp - 0x1fc]
call fcn.0045eb44
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1f8]
mov edx, dword [ebp - 0x1ec]
call fcn.0045eb44
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x1fc]
mov ecx, dword [ebp - 0x200]
push esi
push dword [ebp - 0x1f8]
call fcn.0041a243
lea ecx, [ebp - 0x1f8]
lea esi, [eax + 0x7ff8fffb]
neg esi
sbb esi, esi
and esi, eax
call fcn.0045b6b9
lea ecx, [ebp - 0x1fc]
call fcn.0045b6b9
lea ecx, [ebp - 0x200]
call fcn.0045b6b9
lea ecx, [ebp - 0x238]
call fcn.0042224a
mov ecx, dword [ebp - 0x1ec]
add ecx, 0xfffffff0
call fcn.00429900
mov eax, esi
jmp 0x44684e
call fcn.0043bc1f
ret 4
Function at 0x45c999
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x28]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov word [ebx], ax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov byte [eax], 0
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
sub eax, 0
je 0x45ca0e
sub eax, 1
je 0x45ca05
sub eax, 1
je 0x45c9df
sub eax, 1
jne 0x45ca18
push edi
call fcn.00437250
jmp 0x45ca15
test edi, edi
js 0x45c9fc
mov edi, 0x8007029c
push edi
push 2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045d72c
mov ecx, edi
call fcn.0045d258
jmp 0x45ca15
mov ecx, edi
call fcn.0045d26b
jmp 0x45ca15
mov ecx, edi
call fcn.0045d245
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0x38]
mov eax, dword [ebp + 0x18]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
inc eax
lock xadd dword [0x4a13b0], eax
inc eax
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x45ca40
xor ecx, ecx
cmp word [eax], cx
jne 0x45ca42
xor eax, eax
mov dword [esi + 0xc], eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
mov dword [esi + 0x10], eax
lea edi, [esi + 0x2c]
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x4c], eax
xor eax, eax
push 6
pop ecx
mov dword [esi + 0x28], edx
rep stosd dword es:[edi], eax
mov edi, dword [0x4a2900]
test edi, edi
je 0x45ca9b
mov ecx, edi
call dword [0x4a3670]
call edi
mov edi, dword [0x4a12c4]
mov dword [esi + 0x44], eax
test edi, edi
je 0x45cabb
push 0x400
push dword [ebp + 0x30]
mov ecx, edi
push esi
call dword [0x4a3670]
call edi
mov edi, dword [0x4a299c]
test edi, edi
je 0x45cad0
push esi
mov ecx, edi
call dword [0x4a3670]
call edi
mov edi, dword [0x4a29a4]
test edi, edi
je 0x45cae5
push esi
mov ecx, edi
call dword [0x4a3670]
call edi
xor eax, eax
cmp dword [esi + 4], eax
jl 0x45cafd
cmp dword [ebp + 0x18], 3
jne 0x45cb86
mov dword [esi + 4], 0x8000ffff
call fcn.0045c95c
mov edi, dword [0x4a2988]
test al, al
jne 0x45cb29
test edi, edi
je 0x45cb62
cmp byte [0x4a2994], al
jne 0x45cb62
xor eax, eax
mov ecx, edi
push eax
push eax
push esi
call dword [0x4a3670]
call edi
jmp 0x45cb62
test edi, edi
je 0x45cb47
cmp byte [0x4a2994], 0
jne 0x45cb47
push 0x800
push ebx
push esi
mov ecx, edi
call dword [0x4a3670]
call edi
xor eax, eax
cmp word [ebx], ax
jne 0x45cb5b
push esi
mov edx, 0x800
mov ecx, ebx
call fcn.0045c4c6
push ebx
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
cmp byte [0x4a298c], 0
je 0x45cb7f
mov esi, dword [0x4a28f8]
test esi, esi
je 0x45cb7f
mov ecx, esi
call dword [0x4a3670]
call esi
pop edi
pop esi
pop ebx
leave
ret 0x34
call fcn.0045e361
int3
Function at 0x45ff13
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x4a0cb8]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 4
push eax
lea eax, [esp + 0x20]
mov ebx, ecx
push eax
push ecx
push 0x10
push 0x40e288
mov edx, 0x407210
mov byte [ebx], 0
xor esi, esi
call fcn.0042e394
test eax, eax
jne 0x46005d
cmp dword [esp + 0x1c], esi
je 0x46005d
lea eax, [esp + 0x28]
push eax
push esi
push esi
push 0x23
push esi
call dword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x46005d
push 0x40e2c0
mov edx, 0x104
lea ecx, [esp + 0x2c]
call fcn.00420c07
mov esi, eax
test esi, esi
js 0x46005d
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push SysReAllocString
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x460033
push 0
push 0
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileTime]
test eax, eax
jne 0x45ffee
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x45fff0
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x46002a
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
add dword [esp + 0x10], 0x2a69c000
push eax
adc ecx, 0xc9
mov dword [esp + 0x18], ecx
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CompareFileTime]
test eax, eax
jns 0x46002a
mov byte [ebx], 1
push edi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x46005d
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x460048
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070002
je 0x460058
cmp esi, 0x80070003
jne 0x46005d
xor esi, esi
mov byte [ebx], 1
mov ecx, dword [esp + 0x234]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043b590
mov esp, ebp
pop ebp
ret
Function at 0x461632
Capabilities:
Get common file path

Disassembly:
push 0x42c
mov eax, 0x44c0e5
call fcn.0043bc61
mov dword [ebp - 0x434], edx
mov esi, ecx
mov dword [ebp - 0x438], esi
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push esi
push 0
call dword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
js 0x461745
push 0x4070b8
mov edx, 0x104
lea ecx, [ebp - 0x218]
call fcn.00420c07
mov ecx, dword [ebp + 4]
mov edi, eax
test edi, edi
jns 0x4616ac
push edi
push 0x409960
mov edx, 0x387
call fcn.0045e47c
jmp 0x461802
push 0x407ce8
lea ecx, [ebp - 0x424]
call fcn.004234c2
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x424], esi
jne 0x4616d8
mov eax, 0x8007000e
mov edx, 0x391
mov edi, eax
push eax
jmp 0x461727
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
call fcn.0045faf5
cmp dword [ebp - 0x424], esi
jne 0x461701
mov eax, 0x8007000e
mov edx, 0x398
mov edi, eax
push eax
jmp 0x461727
push dword [ebp - 0x430]
mov edx, dword [ebp - 0x434]
mov ecx, dword [ebp - 0x424]
sub esp, 0xc
call fcn.00461356
mov edi, eax
test edi, edi
jns 0x461734
push edi
mov edx, 0x39d
mov ecx, dword [ebp + 4]
push 0x409960
call fcn.0045e47c
push dword [ebp - 0x424]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x461802
push esi
push 0x40e4cc
push edi
push 0x409960
push 0x3a4
push dword [ebp + 4]
call fcn.00464a06
xor esi, esi
lea eax, [ebp - 0x420]
push 0x208
push esi
push eax
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x428], esi
call sub.msvcrt.dll_memset
add esp, 0x24
lea eax, [ebp - 0x420]
push 0x104
push eax
push esi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x42c]
call fcn.0046496f
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x42c]
push dword [ebx + 8]
push dword [ebx + 4]
push 0x7df
call fcn.004649a0
push dword [ebx + 8]
mov ecx, ebx
mov dword [ebx + 0xc], eax
call fcn.0042e5c5
mov esi, dword [ebx + 0xc]
push dword [ebp - 0x438]
mov edx, dword [ebx + 8]
push 0x4077e4
sub edx, esi
lea eax, [eax + esi*2]
push edx
push eax
call fcn.0041d6f4
add esp, 0xc
mov ecx, ebx
call fcn.0042e58d
lea ecx, [ebp - 0x42c]
call fcn.0043a882
mov eax, edi
call fcn.0043bc10
ret 0x10