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

Disassembly:
push 0x18
mov eax, 0x43a361
call fcn.00438588
call fcn.0040638e
push eax
lea ecx, [ebp - 0x10]
call fcn.004061a7
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x10]
push str.:__Tid_d_
push eax
call fcn.00410746
add esp, 0xc
push 0x445db0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
mov esi, dword [ebp + 8]
pop ecx
push eax
push ecx
mov ecx, esi
call fcn.004106c8
lea ecx, [ebp - 0x1c]
call fcn.0040fdde
lea ecx, [ebp - 0x10]
xor ebx, ebx
push ecx
inc ebx
lea ecx, [ebp - 0x18]
mov edx, eax
mov byte [ebp - 4], bl
call fcn.004105b9
pop ecx
push esi
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004105b9
pop ecx
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040f178
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406620
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406620
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00406620
call fcn.0040fe50
mov eax, 0x400000
cmp dword [0x45e968], eax
jge 0x410260
lock xadd dword [0x45e968], ebx
inc ebx
cmp ebx, eax
jge 0x410259
mov ecx, dword [0x45e978]
test ecx, ecx
je 0x410259
mov eax, dword [esi]
lea edx, [ebp - 0x20]
and dword [ebp - 0x20], 0
push 0
push edx
push dword [eax - 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lock dec dword [0x45e968]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406620
call fcn.00438551
ret

Function at 0x41087c
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x454cb8
call fcn.00432e40
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x4108e3
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x4108e3
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x4108e3
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x4108e3
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x4108ec
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.00432e86
ret
Function at 0x410968
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x45eba0]
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x45eba4]
test edx, edx
jne 0x4109b6
test eax, eax
je 0x4109c9
mov edx, eax
mov dword [0x45eba0], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x4109c9
cmp ecx, ebx
jb 0x4109c9
cmp ecx, edi
jbe 0x410ad1
mov edx, eax
test eax, eax
jmp 0x4109eb
test edx, edx
je 0x4109e6
mov eax, dword [edx + 8]
test eax, eax
je 0x4109e6
cmp eax, ebx
jb 0x4109e6
cmp eax, edi
jbe 0x410ad1
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x45eba0], edx
jne 0x4109cf
and esi, 0xffff0000
xor edx, edx
mov ecx, esi
mov dword [ebp - 4], ecx
cmp esi, ebx
jbe 0x410b76
lea eax, [ecx - 0x70000000]
cmp eax, 0x10000000
ja 0x410a40
push edx
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
pop ecx
pop ecx
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ecx, 0x500
cdq
idiv ecx
mov ecx, 0x6ffe
sub ecx, edx
shl ecx, 0x10
mov dword [ebp - 4], ecx
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410b76
mov eax, 0x10000
cmp dword [ebp - 0x2c], eax
jne 0x410a64
cmp dword [ebp - 0x30], eax
jae 0x410a7c
mov ecx, dword [ebp - 0x38]
add ecx, 0xffff0000
mov dword [ebp - 4], ecx
cmp ecx, ebx
jbe 0x410b76
xor edx, edx
jmp 0x410a08
push 0x40
push 0x3000
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov dword [0x45eba0], edx
test edx, edx
je 0x410b76
mov eax, dword [0x45eba4]
xor ecx, ecx
mov dword [edx + 4], eax
mov esi, 0x7fd
mov dword [edx], 0x52727464
lea eax, [edx + 0xffe0]
mov dword [edx + 8], ecx
mov dword [0x45eba4], edx
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
sub esi, 1
jne 0x410ac1
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x410b7a
cmp esi, edi
ja 0x410b7a
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [edx + 8], ecx
call dword [sym.imp.VCRUNTIME140.dll_memset]
add esp, 0xc
mov eax, esi
jmp 0x410b7c
lea eax, [esi - 0x70000000]
mov ecx, 0x80010000
cmp eax, 0x10000000
lea eax, [ebp - 0x20]
push 0x1c
cmovbe esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410b7a
mov eax, 0x10000
cmp dword [ebp - 0x10], eax
jne 0x410b6e
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
jb 0x410b71
movzx edx, si
test edx, edx
je 0x410b4f
mov esi, dword [ebp - 0x20]
sub eax, edx
sub ecx, eax
add esi, eax
mov dword [ebp - 0x14], ecx
mov eax, 0x10000
mov dword [ebp - 0x20], esi
push 0x40
push 0x3000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov dword [0x45eba0], edx
test edx, edx
jne 0x410a9d
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add esi, ecx
cmp esi, edi
jb 0x410aff
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410c4f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x45eb98], 0
je 0x410c63
mov eax, 0x10dd
jmp 0x410cb8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x45eb98
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x410c5c
push esi
mov esi, dword [0x45eba4]
mov dword [0x45eb9c], eax
mov dword [0x45eb88], eax
mov dword [0x45eb8c], eax
mov dword [0x45eb94], eax
mov dword [0x45eb90], eax
jmp 0x410cb1
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
test esi, esi
jne 0x410c9c
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x410cbc
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x45eb98], eax
je 0x410cd8
mov eax, 0x10dd
jmp 0x410d66
push ebx
push esi
push edi
mov edi, dword [0x45eb88]
xor ebx, ebx
test edi, edi
je 0x410d25
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [edi + 4], ebx
jne 0x410d13
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x410d13
call fcn.00410b83
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push 0x18
push edi
call fcn.00432227
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x410ce7
mov dword [0x45eb88], ebx
call fcn.0041093d
mov edi, dword [0x45eb8c]
test edi, edi
je 0x410d55
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push 8
push edi
call fcn.00432227
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x410d3a
pop edi
pop esi
mov dword [0x45eb8c], ebx
xor eax, eax
mov dword [0x45eb98], ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410ffa
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x45eb94]
push edi
mov edi, ecx
test eax, eax
jne 0x41106a
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp edi, eax
jne 0x411014
xor eax, eax
pop edi
ret
push esi
push 8
call fcn.004321ef
mov esi, eax
pop ecx
test esi, esi
jne 0x411028
push 8
pop edi
jmp 0x411046
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x411057
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push 8
push esi
call fcn.00432227
pop ecx
pop ecx
and dword [0x45eb90], 0
mov eax, edi
mov dword [0x45eb94], edi
jmp 0x411069
mov eax, dword [0x45eb8c]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
mov dword [0x45eb8c], esi
pop esi
pop edi
ret
Function at 0x4116f4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x24c
mov eax, 0x43a4ff
call fcn.004385bc
mov esi, ecx
push str.locale
lea ecx, [ebp - 0x250]
call fcn.00406958
xor edi, edi
lea eax, [ebp - 0x21c]
push 0x20a
push edi
push eax
mov dword [ebp - 4], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
call fcn.004040eb
mov ecx, eax
call fcn.004055e7
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x41174e
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x258]
call fcn.00406958
push edi
push 1
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.004069d5
lea eax, [ebp - 0x24c]
push eax
call fcn.004040eb
mov ecx, eax
call fcn.0040562d
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x41178b
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x254]
call fcn.00406958
push edi
push 1
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 6
call fcn.004069d5
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [ebp - 0x250]
lea eax, [ebp - 0x21c]
mov ebx, str._s_s
push eax
push ebx
push esi
call fcn.00405b1e
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x411829
push dword [ebp - 0x250]
push dword [ebp - 0x258]
push ebx
push esi
call fcn.00405b1e
add esp, 0x10
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x411829
push dword [ebp - 0x250]
push dword [ebp - 0x254]
push ebx
push esi
call fcn.00405b1e
add esp, 0x10
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.00406620
mov ecx, dword [ebp - 0x258]
add ecx, 0xfffffff0
call fcn.00406620
mov ecx, dword [ebp - 0x250]
add ecx, 0xfffffff0
call fcn.00406620
xor eax, eax
inc eax
call fcn.00438566
ret
Function at 0x41185c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x24
mov eax, 0x43a53f
call fcn.004385bc
mov ebx, ecx
mov edi, dword [ebp + 8]
call fcn.0040638e
push eax
lea ecx, [ebp - 0x30]
call fcn.004061a7
and dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004116f4
mov esi, dword [ebp - 0x30]
push 0x44621c
push ebx
push esi
push str._s_s._s
push edi
call fcn.00405b1e
add esp, 0x14
lea eax, [ebp - 0x28]
push eax
call fcn.004040eb
mov ecx, eax
call fcn.0040e382
push 0x445a98
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00406958
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push str.PCQQ
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x411905
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x44621c
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
push esi
lea eax, [ebp - 0x2c]
push str._s_s__s._s
push eax
call fcn.00405b1e
add esp, 0x18
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41191e
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.00405ca0
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00406620
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004069d5
lea ecx, [esi - 0x10]
call fcn.00406620
xor eax, eax
inc eax
call fcn.00438566
ret
Function at 0x411946
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x20
mov eax, 0x43a57c
call fcn.00438588
mov dword [ebp - 0x1c], edx
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
sub esp, 0xc
mov dword [ebp - 4], esi
push 3
push ecx
push 0x80000000
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00410817
mov ebx, eax
test ebx, ebx
js 0x411ace
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [ebp - 0x24], ecx
cmp ecx, 0xffffffff
jne 0x4119a2
call fcn.00410800
test eax, eax
js 0x4119a9
mov ecx, dword [ebp - 0x24]
mov eax, ecx
or eax, dword [ebp - 0x20]
jne 0x4119b3
mov ebx, 0x80070057
jmp 0x411ace
mov dword [ebp - 0x10], esi
push ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00411609
mov esi, dword [ebp - 0x10]
test al, al
jne 0x4119d4
mov ebx, 0x8007000e
jmp 0x411ac7
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0x24]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4119f2
call fcn.00410800
test edi, edi
je 0x411a02
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [ebp - 0x2c], edi
cmp dword [esi], 0x464d4652
jne 0x411ac2
cmp dword [esi + 8], 0x800000
ja 0x411ac2
mov eax, dword [ebp - 0x24]
lea ecx, [esi + 0x10]
add eax, 0xfffffff0
mov edi, str.C6642F75_8DBE_473d_A98B_940F84EF702C
push eax
push ecx
push eax
push ecx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
pop ecx
push eax
push edi
call fcn.00431c00
add esp, 0x18
test eax, eax
je 0x411a4a
mov ebx, 0x8007000b
jmp 0x411ac7
mov eax, dword [esi + 8]
and dword [ebp - 0x14], 0
add eax, 0x7f
and eax, 0xffffff80
mov dword [ebp - 0x18], eax
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00411609
mov edi, dword [ebp - 0x14]
test al, al
jne 0x411a75
mov ebx, 0x8007000e
jmp 0x411ab9
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
push edi
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00431c40
add esp, 0x10
test eax, eax
jne 0x411a98
mov ebx, 0x80004005
jmp 0x411ab9
push esi
call fcn.0043286e
pop ecx
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
call fcn.0040f3f8
push edi
call fcn.0043286e
pop ecx
xor edi, edi
push edi
call fcn.0043286e
pop ecx
jmp 0x411ac7
mov ebx, 0x80070057
push esi
call fcn.0043286e
pop ecx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x411adc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
call fcn.00438551
ret
Function at 0x411d0b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x12c
mov eax, 0x43a621
call fcn.004385bc
call fcn.0040638e
push eax
lea ecx, [ebp - 0x134]
call fcn.004061a7
and dword [ebp - 4], 0
xor eax, eax
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
call fcn.0040638e
push eax
lea ecx, [ebp - 0x130]
call fcn.004061a7
push ecx
push ecx
mov byte [ebp - 4], 2
call fcn.004040eb
mov ecx, eax
call fcn.00406f8b
lea ecx, [ebp - 0x138]
call fcn.00412270
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 3
push ecx
mov ecx, dword [eax]
call fcn.0041185c
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x138]
lea ecx, [ecx - 0x10]
call fcn.00406620
mov esi, dword [ebp - 0x130]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
jne 0x411e08
lea eax, [ebp - 0x130]
mov ecx, 0x446148
push eax
call fcn.0041185c
mov esi, dword [ebp - 0x130]
pop ecx
push esi
call edi
cmp eax, 0xffffffff
jne 0x411e08
lea ecx, [ebp - 0x130]
call fcn.004065eb
mov esi, dword [ebp - 0x130]
mov edi, dword [ebp - 0x134]
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.00406620
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004069d5
lea ecx, [edi - 0x10]
call fcn.00406620
mov eax, ebx
call fcn.00438566
ret
xor eax, eax
cmp dword [esi - 0xc], eax
setne al
test eax, eax
je 0x411ddc
lea edx, [ebp - 0x134]
mov ecx, esi
call fcn.00411946
test eax, eax
js 0x411ddc
mov edi, dword [ebp - 0x134]
lea eax, [ebp - 0x128]
push ecx
push edi
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x12c], eax
call fcn.0040514b
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
push dword [ebp - 0x12c]
call fcn.004041b8
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x12c], eax
je 0x411e75
push dword [ebp - 0x12c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea ecx, [ebp - 0x28]
call fcn.00411ae4
mov ebx, eax
jmp 0x411de4

Function at 0x411fdb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x45b010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x20c]
push esi
push 0
push eax
mov ebx, edx
mov edi, ecx
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x20c]
add esp, 0x18
push 0x104
push eax
push 0x59
push 0x400
call esi
push 0x104
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x414]
push eax
push 0x5a
push 0x400
call esi
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0040692c
test esi, esi
je 0x4120a0
mov eax, dword [ebp - 0x418]
push 0x5f
pop ecx
mov word [ebp + eax*2 - 0x20e], cx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0040692c
mov ecx, dword [edi]
xor eax, eax
pop edi
pop esi
pop ebx
cmp dword [ecx - 0xc], eax
mov ecx, dword [ebp - 4]
setg al
xor ecx, ebp
call fcn.00431fdc
mov esp, ebp
pop ebp
ret
Function at 0x412dc3
Capabilities:
Check if file exists
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x45b010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
xor esi, esi
lea eax, [ebp - 0x418]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x412ee8
push str.riched20.dll
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412ee8
push 0x20a
lea eax, [ebp - 0x210]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x624]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x210]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x412ee8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.riched20.dll.bk
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.riched20.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412ee8
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov esi, eax
test esi, esi
jne 0x412ee8
push 4
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00431fdc
mov esp, ebp
pop ebp
ret

Function at 0x412f08
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45b010]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x412f6e
push str.riched20.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call fcn.00412dc3
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.00431fdc
mov esp, ebp
pop ebp
ret
Function at 0x41638c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45b010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], edx
xor ebx, ebx
mov edi, ecx
push eax
mov dword [ebp - 0x20], ebx
call fcn.004040eb
mov ecx, eax
call fcn.00405a51
cmp dword [eax + 0x14], 8
jb 0x4163c1
mov eax, dword [eax]
push ebx
lea ecx, [ebp - 0x20]
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
push 1
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004069d5
test esi, esi
je 0x4163f0
xor eax, eax
jmp 0x41641a
push 4
lea eax, [ebp - 0x24]
push eax
push 4
push ebx
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp dword [ebp - 0x20], ebx
je 0x416413
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00431fdc
mov esp, ebp
pop ebp
ret

Function at 0x41642b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45b010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov dword [ebp - 0x20], esi
mov ebx, ecx
test edi, edi
jne 0x41644f
xor eax, eax
jmp 0x4164c1
lea eax, [ebp - 0x1c]
mov dword [edi], esi
push eax
call fcn.004040eb
mov ecx, eax
call fcn.00405a51
cmp dword [eax + 0x14], 8
jb 0x416469
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push 0x20019
push esi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0
push 1
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004069d5
test esi, esi
jne 0x41644b
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 4
push eax
push edi
push esi
push esi
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x20], 0
mov esi, eax
je 0x4164ba
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00431fdc
mov esp, ebp
pop ebp
ret
Function at 0x4164d2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45b010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x1c]
xor esi, esi
push eax
mov edi, edx
mov dword [ebp - 0x20], esi
mov ebx, ecx
call fcn.004040eb
mov ecx, eax
call fcn.00405a51
cmp dword [eax + 0x14], 8
jb 0x416506
mov eax, dword [eax]
push esi
lea ecx, [ebp - 0x20]
push ecx
push esi
push 0x20006
push esi
push esi
push esi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 0
push 1
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004069d5
test esi, esi
je 0x416536
xor eax, eax
jmp 0x41656d
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push 0
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x20], 0
mov esi, eax
je 0x416566
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00431fdc
mov esp, ebp
pop ebp
ret

Function at 0x41657e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45b010]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x20], 0
push ebx
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
jne 0x4165a0
xor eax, eax
jmp 0x416619
lea eax, [ebp - 0x1c]
push eax
call fcn.004040eb
mov ecx, eax
call fcn.00405a51
cmp dword [eax + 0x14], 8
jb 0x4165b8
mov eax, dword [eax]
push esi
lea ecx, [ebp - 0x20]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0
push 1
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004069d5
test esi, esi
je 0x4165e6
xor eax, eax
jmp 0x416618
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x200
push eax
push edi
push 0
push 0
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x20], 0
mov esi, eax
je 0x416611
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00431fdc
mov esp, ebp
pop ebp
ret