joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414660
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 0x414687
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x414682
mov eax, dword [ebx]
jmp 0x414684
mov eax, ebx
mov byte [eax], 0
call fcn.00408560
test al, al
je 0x414699
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0040a4a0
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x414690
push 0x10000
call fcn.004381cd
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.0043c663
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x10], edi
test edi, edi
je 0x41472f
mov eax, dword [ebp + 8]
lea esp, [esp]
test ebx, ebx
je 0x414702
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.00404440
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x414745
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.0043c663
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x4146e0
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0043c70f
add esp, 4
test eax, eax
jne 0x414748
mov byte [ebp - 1], 1
jmp 0x41474c
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.0043c7a1
add esp, 4
test esi, esi
je 0x414762
push esi
call fcn.004397de
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414790
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.0040a370
Function at 0x418de0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4a12f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], edi
test edi, edi
jne 0x418e05
mov dword [ebp - 0x38], edi
jmp 0x418e24
cmp byte [edi], 0
jne 0x418e13
mov dword [ebp - 0x38], 0
jmp 0x418e24
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418e18
sub ecx, edx
mov dword [ebp - 0x38], ecx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004116f0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x418e3c
mov eax, dword [eax]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 8], 8
mov esi, eax
mov dword [ebp - 0x38], esi
jb 0x418e5d
push dword [ebp - 0x1c]
call fcn.004383ae
add esp, 4
test esi, esi
jne 0x418e76
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439bb3
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x418f81
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004381cd
add esp, 4
mov dword [ebp - 0x44], edi
mov esi, eax
test edi, edi
jne 0x418ea7
mov dword [ebp - 0x40], edi
jmp 0x418ec4
cmp byte [edi], 0
jne 0x418eb5
mov dword [ebp - 0x40], 0
jmp 0x418ec4
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x418eb8
sub edi, ecx
mov dword [ebp - 0x40], edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004116f0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x418edc
mov eax, dword [eax]
push dword [ebp - 0x38]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 8], 8
jb 0x418ef8
push dword [ebp - 0x1c]
call fcn.004383ae
add esp, 4
push esi
lea ecx, [ebp - 0x1c]
call fcn.00403b20
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004115e0
mov edi, eax
add esp, 8
cmp ebx, edi
je 0x418f40
cmp dword [ebx + 0x14], 0x10
jb 0x418f27
push dword [ebx]
call fcn.004383ae
add esp, 4
mov dword [ebx + 0x14], 0xf
mov ecx, ebx
mov dword [ebx + 0x10], 0
push edi
mov byte [ebx], 0
call fcn.00404320
cmp dword [ebp - 0x20], 0x10
jb 0x418f51
push dword [ebp - 0x34]
call fcn.004383ae
add esp, 4
cmp dword [ebp - 8], 8
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
jb 0x418f74
push dword [ebp - 0x1c]
call fcn.004383ae
add esp, 4
test esi, esi
je 0x418f81
push esi
call fcn.004397de
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00439bb3
mov esp, ebp
pop ebp
ret 8
Function at 0x41bfd0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x4a12f0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x4a2784]
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.004397de
add esp, 4
mov edi, 0x100
jmp 0x41c030
mov esi, dword [0x4a9b58]
xor dl, dl
test esi, esi
jle 0x41c068
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x41c063
mov eax, dword [esi*4 + 0x4a9420]
test eax, eax
je 0x41c063
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x41c040
dec edi
test edi, edi
jle 0x41c071
test dl, dl
jne 0x41c030
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.00439bb3
mov esp, ebp
pop ebp
ret

Function at 0x41f250
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a12f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
mov eax, 0x1400
cmp ax, di
je 0x41f2ff
push 9
lea eax, [ebp - 0x18]
mov ebx, edi
push eax
push 0x59
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x41f2ff
mov ecx, dword [ebp - 0x1c]
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00405350
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x41f2b7
mov eax, dword [esi]
jmp 0x41f2b9
mov eax, esi
xor ecx, ecx
and edi, 0xfc00
mov word [eax], cx
xor eax, eax
cmp ax, di
je 0x41f2ec
push 9
lea eax, [ebp - 0x18]
push eax
push 0x5a
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x41f2ec
dec eax
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00405350
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439bb3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00439bb3
mov esp, ebp
pop ebp
ret
Function at 0x41f780
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov edx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea esi, [edi + 4]
mov ecx, esi
call fcn.00414660
add esp, 4
test al, al
jne 0x41f802
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x41f7f4
cmp eax, 0x21
je 0x41f7f4
cmp eax, 5
jne 0x41f7cd
mov eax, 0x3e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x14], 8
jb 0x41f7d5
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
lea eax, [ecx*2 + 0x3e9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x3ea
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x20], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x420ed5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4a12f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4a2cf8], 0
push edi
mov edi, ecx
mov dword [ebp - 0x14], str.Desktop
mov dword [ebp - 0x10], str.Immersive
mov dword [ebp - 0xc], str.SysLauncher
mov dword [ebp - 8], 0x45ba9c
je 0x420f17
mov eax, dword [0x4a2cfc]
jmp 0x4210e6
cmp dword [edi + 0xcc], 3
jne 0x420f35
and dword [0x4a2cfc], 0
xor eax, eax
mov byte [0x4a2cf8], 1
jmp 0x4210e6
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403b00
lea eax, [ebp - 0x2c]
push eax
call fcn.00420d82
pop ecx
test al, al
je 0x4210c7
lea eax, [ebp - 0x2c]
push eax
call fcn.00426b1f
pop ecx
cmp eax, 2
jne 0x4210c7
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call esi
test ax, ax
je 0x420f90
push 0x7a
call esi
test ax, ax
je 0x420f90
xor ebx, ebx
inc ebx
mov dword [0x4a2cfc], ebx
mov byte [0x4a2cf8], bl
jmp 0x4210d8
add edi, 0x24
push str.force_immersive
mov ecx, edi
call fcn.00402d90
xor ebx, ebx
xor esi, esi
inc ebx
test al, al
je 0x420fb0
mov dword [0x4a2cfc], ebx
jmp 0x420fc6
push str.force_desktop
mov ecx, edi
call fcn.00402d90
test al, al
je 0x420fe5
mov dword [0x4a2cfc], esi
push esi
lea ecx, [ebp - 0x54]
mov byte [0x4a2cf8], bl
call fcn.00402520
push eax
mov ecx, edi
call fcn.0041ff61
lea ecx, [ebp - 0x54]
call fcn.00402660
lea ecx, [ebp - 0x3c]
call fcn.0040d920
push 0xf003f
mov edi, str.SoftwareChromiumMetro
lea ecx, [ebp - 0x3c]
push edi
push SysReAllocString
call fcn.0040da30
test eax, eax
je 0x42102f
push eax
push edi
push str.Failed_to_open_HKCU__ls_key__error_0x_x_n
call fcn.004016a0
add esp, 0xc
cmp byte [0x4a2cf8], 0
jne 0x42105c
mov dword [0x4a2cfc], esi
mov byte [0x4a2cf8], bl
jmp 0x42105c
cmp byte [0x4a2cf8], 0
je 0x421064
mov esi, dword [0x4a2cfc]
push dword [ebp + esi*4 - 0x14]
push str.Launch_mode_forced_by_cmdline_to__s_n
call fcn.004016a0
pop ecx
pop ecx
push esi
push str.launch_mode
lea ecx, [ebp - 0x3c]
call fcn.0040dd50
mov esi, dword [0x4a2cfc]
jmp 0x4210bd
call fcn.0040e400
cmp eax, 7
jge 0x421097
lea eax, [ebp - 0x30]
push eax
push str.launch_mode
lea ecx, [ebp - 0x3c]
call fcn.0040db70
test eax, eax
je 0x42108f
push str.Desktop
push str.Cant_read_registry__defaulting_to__s_n
jmp 0x4210aa
mov eax, dword [ebp - 0x30]
cmp eax, 2
jb 0x42109f
mov dword [0x4a2cfc], esi
jmp 0x4210b7
push dword [ebp + eax*4 - 0x14]
mov esi, eax
push str.Launch_mode_forced_by_registry_to__s_n
mov dword [0x4a2cfc], esi
call fcn.004016a0
pop ecx
pop ecx
mov byte [0x4a2cf8], bl
lea ecx, [ebp - 0x3c]
call fcn.0040da00
jmp 0x4210da
xor esi, esi
mov byte [0x4a2cf8], 1
mov dword [0x4a2cfc], esi
mov ebx, esi
mov esi, ebx
lea ecx, [ebp - 0x2c]
call fcn.00403c30
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00439bb3
mov esp, ebp
pop ebp
ret
Function at 0x4210f5
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4a12f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x34], eax
mov edx, dword [edi + 0x20]
test edx, edx
jne 0x421120
xor al, al
jmp 0x4211ef
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x30]
mov eax, dword [edx]
push ebx
push ecx
push edx
call dword [eax + 0x1c]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x30], ebx
je 0x42113e
xor al, al
jmp 0x4211ee
mov eax, dword [edi + 0x20]
lea edx, [ebp - 0x28]
and dword [ebp - 0x28], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x30]
and dword [ebp - 0x2c], 0
push edx
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
push edx
push ebx
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x4211d0
push esi
push dword [ebp - 0x2c]
call fcn.00421258
pop ecx
pop ecx
test eax, eax
js 0x4211d0
push 0x38
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.00439c00
add esp, 0xc
mov dword [ebp - 0x68], 0x10
cmp dword [esi + 0x14], 8
lea eax, [ebp - 0x24]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], 0x3c
jb 0x4211a6
mov eax, dword [esi]
jmp 0x4211a8
mov eax, esi
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x421201
cmp dword [esi + 0x14], 8
jb 0x4211c3
mov esi, dword [esi]
push esi
push str.Failed_to_crack_url__ls_n
call fcn.004016a0
pop ecx
pop ecx
xor bl, bl
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4211df
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4211ec
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00439bb3
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x64]
lea eax, [ebp - 0x24]
push esi
push eax
push str.Launch_scheme_is___ls____d__n
call fcn.004016a0
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov dword [eax], esi
jmp 0x4211d2
Function at 0x4216bb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x4a12f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea ecx, [ebp - 0x34]
push edi
lea eax, [esi + 0xb0]
push eax
call fcn.00403ad0
cmp dword [esi + 0xc8], 5
jne 0x421718
mov edi, 0x45c728
push edi
call fcn.004016e0
pop ecx
push eax
push 0
push edi
lea ecx, [ebp - 0x34]
call fcn.00404930
cmp eax, 0xffffffff
je 0x421718
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
cmovae eax, dword [ebp - 0x34]
xor ecx, ecx
mov word [eax], cx
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [esi + 0x24]
push eax
lea ebx, [esi + 0x3c]
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00424898
add esp, 0x10
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x6c]
push 0
push eax
call fcn.00403460
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push str.Formatted_command_line_is__ls_n
call fcn.004016a0
xor eax, eax
lea edi, [ebp - 0x44]
cmp dword [ebp - 8], 8
stosd dword es:[edi], eax
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
cmp dword [ebx + 0x14], 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jb 0x421773
mov ebx, dword [ebx]
lea eax, [ebp - 0x44]
push eax
lea eax, [esi + 0x54]
xor esi, esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebx
test eax, eax
je 0x4217af
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040dea0
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
lea ecx, [ebp - 0x54]
call fcn.0040ded0
jmp 0x4217b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 1
lea ecx, [ebp - 0x1c]
call fcn.00404aa0
lea ecx, [ebp - 0x6c]
call fcn.00402660
push esi
push 1
lea ecx, [ebp - 0x34]
call fcn.00404aa0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00439bb3
mov esp, ebp
pop ebp
ret
Function at 0x422042
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4a12f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x410], eax
xor eax, eax
push 0x60
push eax
push esi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x408], eax
call ebx
mov edi, eax
test edi, edi
jne 0x4220ab
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x4220ab
call fcn.0042080e
mov esi, eax
jmp 0x42214c
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4220cb
call fcn.0042080e
jmp 0x42213f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4220c4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x4220f1
mov esi, 0x8007000e
jmp 0x422141
push eax
lea ecx, [ebp - 0x408]
call fcn.0042066e
cmp dword [ebp - 0x408], 0
je 0x4220ea
push esi
push dword [ebp - 0x408]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x4220c4
mov eax, dword [ebp - 0x408]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x418]
push dword [ebp - 0x408]
call fcn.00421f07
mov esi, eax
test edi, edi
je 0x42214c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x422165
lea ecx, [ebp - 0x408]
call fcn.00420ea2
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00439bb3
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4228a5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x4228b8
push 0xd
pop eax
jmp 0x4228fc
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x4228cb
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4228c3
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42298f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4229a1
push 0xd
pop eax
jmp 0x4229d3
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4229aa
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x422f2f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4a12f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
xor edi, edi
mov word [ebp - 0x210], ax
push 0x208
lea eax, [ebp - 0x20e]
mov dword [ebp - 0x244], edi
push edi
push eax
call fcn.00439c00
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x214], 7
mov esi, 0x45bc84
mov dword [ebp - 0x218], edi
push esi
mov word [ebp - 0x228], ax
call fcn.004016e0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x228]
call fcn.00405350
call fcn.004230e0
test al, al
je 0x422fd6
mov esi, str.S_1_5_18
push esi
call fcn.004016e0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x228]
call fcn.00406500
jmp 0x42303e
xor eax, eax
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
lea eax, [ebp - 0x240]
push eax
mov dword [ebp - 0x230], edi
call fcn.0040eb80
pop ecx
test al, al
je 0x423017
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x228]
call fcn.00404740
jmp 0x423030
mov esi, str.S_1_5_18
push esi
call fcn.004016e0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x228]
call fcn.00406500
push edi
push 1
lea ecx, [ebp - 0x240]
call fcn.00404aa0
push 0xc8
call fcn.004383fa
mov edi, eax
pop ecx
test edi, edi
je 0x4230a2
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x240]
call fcn.00403b20
cmp dword [ebp - 0x214], 8
lea esi, [ebp - 0x228]
mov dword [ebp - 0x244], 1
cmovae esi, dword [ebp - 0x228]
call fcn.00422dcb
push eax
push esi
push 0x160
push 7
xor esi, esi
lea eax, [ebp - 0x240]
push esi
push esi
push esi
push eax
mov ecx, edi
call fcn.00424a95
jmp 0x4230a6
xor esi, esi
mov eax, esi
test byte [ebp - 0x244], 1
mov dword [ebx], eax
je 0x4230bf
push esi
push 1
lea ecx, [ebp - 0x240]
call fcn.00404aa0
push esi
push 1
lea ecx, [ebp - 0x228]
call fcn.00404aa0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00439bb3
mov esp, ebp
pop ebp
ret

Function at 0x4230e0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x4a12f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
xor ebx, ebx
push 0x40e
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push ebx
push eax
call fcn.00439c00
add esp, 0xc
lea eax, [ebp - 0x61c]
push 0x208
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.00439c00
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x423187
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.00439920
xor edx, edx
movzx ebx, bl
lea esi, [ebp - 0x61c]
inc edx
pop ecx
cmp eax, esi
pop ecx
cmove ebx, edx
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00439bb3
mov esp, ebp
pop ebp
ret
Function at 0x424323
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
je 0x424367
push edi
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x423cf8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x424364
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x426436
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4a12f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
xor edi, edi
mov word [ebp - 0x20c], ax
push 0x206
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x228], edi
push edi
push eax
call fcn.00439c00
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x1c
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4264c3
push ebx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
call fcn.00403b20
push edi
lea eax, [ebp - 0x224]
push eax
push esi
call fcn.00410b30
add esp, 0xc
lea ecx, [ebp - 0x224]
mov bl, al
push edi
push 1
call fcn.00404aa0
mov al, bl
pop ebx
jmp 0x4264c5
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00439bb3
mov esp, ebp
pop ebp
ret