joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41597c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x42c
mov eax, dword [0x420164]
xor eax, esp
mov dword [esp + 0x428], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ebx
push eax
mov edi, ecx
lea eax, [esp + 0x18]
push 0x4026c4
push eax
and dword [edi + 0x5fec], 0
call fcn.00416096
add esp, 0x10
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004157e1
mov esi, eax
test esi, esi
jns 0x4159e7
push esi
push 0x40a380
push 0x40a428
push 0x420710
push 0x40149c
jmp 0x415a60
push 0x104
lea eax, [esp + 0x224]
push eax
push 0x40a494
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x415a20
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x415a18
movzx esi, si
or esi, 0x80070000
push esi
push 0x40a4d0
jmp 0x4159d6
push ebx
lea eax, [esp + 0x224]
push eax
lea eax, [esp + 0x18]
push 0x4026c4
push eax
call fcn.00416096
add esp, 0x10
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004157e1
test eax, eax
jns 0x415a6a
push eax
push 0x40a578
push 0x40a428
push 0x420710
push 0x4014c4
push 2
call fcn.00411c1c
add esp, 0x18
mov ecx, dword [esp + 0x434]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041d370
mov esp, ebp
pop ebp
ret 8
Function at 0x418d7f
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x28]
push esi
push edi
push ecx
lea edi, [ebx + 0x98]
mov eax, dword [edi]
mov esi, dword [eax + 0x38]
mov ecx, esi
call dword [0x421350]
mov ecx, edi
call esi
xor esi, esi
cmp dword [ebx + 0x1d0], esi
jne 0x418dcb
mov ecx, dword [ebp + 4]
mov esi, 0x8007139f
push esi
push 0x40a7ec
mov edx, 0x161
call fcn.0040e960
jmp 0x418e2f
lea edi, [ebx + 0x60]
mov dword [ebp - 4], esi
cmp dword [edi + 0x14], 8
jb 0x418dd9
mov edi, dword [edi]
lea ecx, [ebp - 4]
call fcn.0041a6a0
push eax
push 0xf003f
push esi
push edi
push dword [ebx + 0x78]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x418e04
push eax
push ecx
mov ecx, dword [ebp + 4]
call fcn.004174bf
mov esi, eax
jmp 0x418e20
push 0x40a8c8
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
push 0x40a8d4
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
cmp dword [ebp - 4], 0
je 0x418e2f
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.004176f9
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x418fb9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
push esi
push edi
lea ecx, [ebp - 0x2c]
lea edi, [ebx + 0x98]
mov eax, dword [edi]
push ecx
mov esi, dword [eax + 0x38]
mov ecx, esi
call dword [0x421350]
mov ecx, edi
call esi
cmp dword [ebx + 0x1d0], 0
jne 0x419007
mov ecx, dword [ebp + 4]
mov esi, 0x8007139f
push esi
push 0x40a7ec
mov edx, 0x23e
call fcn.0040e960
jmp 0x419046
push 8
pop ecx
lea eax, [ebx + 0x60]
mov dword [ebp - 4], ecx
cmp dword [eax + 0x14], ecx
jb 0x419017
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 8]
push 0
push 0x48
push 0x40a8d4
push eax
push dword [ebx + 0x78]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov esi, eax
test esi, esi
je 0x419044
jle 0x419046
movzx esi, si
or esi, 0x80070000
jmp 0x419046
xor esi, esi
lea ecx, [ebp - 0x2c]
call fcn.004176f9
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4190bb
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x420164]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
xor esi, esi
call fcn.00419b56
push 0x400
lea eax, [ebp - 0x404]
push esi
push eax
call sub.msvcrt.dll_memset
lea eax, [edi + 0x48]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4190fe
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi + 0x7c], eax
test eax, eax
jne 0x419121
call fcn.00416327
mov esi, eax
test esi, esi
js 0x4191af
mov eax, 0x2710
push eax
push eax
push eax
push eax
push dword [edi + 0x7c]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x41913e
call fcn.00416327
mov esi, eax
test esi, esi
js 0x4191af
push 0
push 0x1bb
push ebx
push dword [edi + 0x7c]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [edi + 0x80], eax
test eax, eax
jne 0x419164
call fcn.00416327
mov esi, eax
test esi, esi
js 0x4191af
push ecx
lea edx, [ebp - 0x404]
mov ecx, edi
call fcn.004191c0
mov esi, eax
test esi, esi
js 0x4191af
push 0x800000
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x404]
push eax
push 0x40a8f0
push dword [edi + 0x80]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [edi + 0x84], eax
test eax, eax
jne 0x4191af
call fcn.00416327
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d370
leave
ret
Function at 0x4197f3
Capabilities:
Read http header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, edx
mov dword [ebp - 0xc], ecx
push esi
push edi
xor edi, edi
and dword [ebx + 0x10], edi
cmp dword [ebx + 0x14], 8
jb 0x419812
mov eax, dword [ebx]
jmp 0x419814
mov eax, ebx
mov esi, dword [ebp + 0xc]
xor edx, edx
mov word [eax], dx
and dword [esi + 0x10], edx
cmp dword [esi + 0x14], 8
jb 0x419829
mov eax, dword [esi]
jmp 0x41982b
mov eax, esi
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp + 8]
push edx
mov dword [eax], edx
lea eax, [ebp - 8]
push eax
push edx
push edx
push 0x36
push dword [ecx + 0x84]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x419860
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x7a
je 0x419860
call fcn.00416327
mov edi, eax
push 0x401490
push dword [ebp - 8]
call fcn.0041db19
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
jne 0x41987b
mov edi, 0x8007000e
test edi, edi
js 0x4198ab
xor ecx, ecx
push ecx
mov word [eax], cx
lea ecx, [ebp - 8]
push ecx
push eax
mov eax, dword [ebp - 0xc]
push 0
push 0x36
push dword [eax + 0x84]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x4198a8
call fcn.00416327
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, ebx
call fcn.00416d49
mov ecx, dword [esi + 0x10]
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0xc], ecx
cmp ecx, eax
ja 0x4198eb
cmp dword [esi + 0x14], eax
je 0x4198eb
push 1
push eax
mov ecx, esi
call fcn.00416e36
test al, al
je 0x4198eb
cmp dword [esi + 0x14], 8
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x10], ecx
jb 0x4198e3
mov eax, dword [esi]
jmp 0x4198e5
mov eax, esi
xor edx, edx
mov word [eax + ecx*2], dx
test edi, edi
js 0x419921
cmp dword [esi + 0x14], 8
jb 0x4198f7
mov esi, dword [esi]
push dword [ebx + 0x10]
push esi
push dword [ebp + 8]
mov esi, dword [ebp - 4]
push 0x40a954
push esi
call dword [sym.imp.msvcrt.dll_swscanf_s]
add esp, 0x14
cmp eax, 0xffffffff
je 0x41991a
cmp eax, 2
jge 0x419924
mov edi, 0x8000ffff
jmp 0x419924
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x419935
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
lea eax, [ebp - 0xc]
push eax
mov ebx, ecx
mov dword [ebp - 0xc], esi
mov edi, esi
mov dword [ebp - 8], esi
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebx + 0x88]
mov edx, 0x23c34600
mov ecx, dword [ebp - 0xc]
mul edx
mov dword [ebp - 4], esi
mov esi, dword [ebp - 8]
add ecx, eax
lea eax, [ebx + 0x60]
mov dword [ebp - 0x14], ecx
adc esi, edx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x10], esi
jb 0x419981
mov eax, dword [eax]
xor esi, esi
lea ecx, [ebp - 4]
push esi
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push dword [ebx + 0x78]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov ebx, 0x80070000
test eax, eax
je 0x4199b3
jg 0x4199aa
mov edi, eax
jmp 0x4199af
movzx edi, ax
or edi, ebx
test edi, edi
js 0x4199d9
push 8
lea eax, [ebp - 0x14]
push eax
push 0xb
push esi
push 0x40a8d4
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x4199d9
jg 0x4199d4
mov edi, eax
jmp 0x4199d9
movzx edi, ax
or edi, ebx
cmp dword [ebp - 4], esi
je 0x4199e7
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4199ee
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
push esi
push edi
xor edx, edx
lea edi, [ebx + 0x60]
mov dword [ebp - 4], edx
cmp dword [edi + 0x14], 8
mov esi, edx
jb 0x419a12
mov eax, dword [edi]
jmp 0x419a14
mov eax, edi
lea ecx, [ebp - 4]
push ecx
push edx
push edx
push 2
push 0x40a8c8
push eax
push dword [ebx + 0x78]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0x419a42
jg 0x419a35
mov esi, eax
jmp 0x419a3e
movzx esi, ax
or esi, 0x80070000
test esi, esi
js 0x419aab
mov eax, dword [ebp - 4]
add eax, 0x1e
cmp eax, 0x208
jb 0x419a54
mov esi, 0x800700ea
test esi, esi
js 0x419aab
push ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, dword [ebp - 8]
call fcn.00417174
mov esi, eax
test esi, esi
js 0x419aab
cmp dword [edi + 0x14], 8
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
jb 0x419a7e
mov edi, dword [edi]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
push 0
push 2
push 0x40a8c8
push edi
push dword [ebx + 0x78]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0x419aab
jg 0x419aa2
mov esi, eax
jmp 0x419aab
movzx esi, ax
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x419ab4
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
lea eax, [ecx + 0x60]
cmp dword [eax + 0x14], 8
mov esi, ebx
push edi
mov edi, edx
mov dword [ebp - 4], ebx
jb 0x419ad1
mov eax, dword [eax]
push ebx
lea edx, [ebp - 4]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push dword [ecx + 0x78]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
je 0x419b00
jg 0x419af3
mov esi, eax
jmp 0x419afc
movzx esi, ax
or esi, 0x80070000
test esi, esi
js 0x419b41
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x419b05
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push ebx
push 0x40a8c8
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x419b41
jg 0x419b38
mov esi, eax
jmp 0x419b41
movzx esi, ax
or esi, 0x80070000
cmp dword [ebp - 4], ebx
je 0x419b4f
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
pop ebx
leave
ret

Function at 0x419edc
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x24
mov eax, 0x41e780
call fcn.0041dbd5
mov esi, ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 4
push eax
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
push edi
push 0x10
push 0x40abe8
push 0x40ac08
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2c], edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
xor ebx, ebx
cmp dword [ebp - 0x2c], 1
sete bl
je 0x41a017
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
push eax
mov ecx, esi
call fcn.00418e50
test eax, eax
js 0x41a00c
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
mov eax, ecx
jae 0x419f59
lea eax, [ebp - 0x28]
mov edx, 0x40aa50
mov si, word [eax]
cmp si, word [edx]
jne 0x419f84
test si, si
je 0x419f80
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x419f84
add eax, 4
add edx, 4
test si, si
jne 0x419f5e
mov eax, edi
jmp 0x419f89
sbb eax, eax
or eax, 1
test eax, eax
je 0x41a009
cmp dword [ebp - 0x14], 8
mov eax, ecx
jae 0x419f98
lea eax, [ebp - 0x28]
mov edx, 0x40aa60
mov si, word [eax]
cmp si, word [edx]
jne 0x419fc3
test si, si
je 0x419fbf
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x419fc3
add eax, 4
add edx, 4
test si, si
jne 0x419f9d
mov eax, edi
jmp 0x419fc8
sbb eax, eax
or eax, 1
test eax, eax
je 0x41a009
cmp dword [ebp - 0x14], 8
jae 0x419fd5
lea ecx, [ebp - 0x28]
mov eax, 0x40aa68
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x41a000
test dx, dx
je 0x419ffc
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x41a000
add ecx, 4
add eax, 4
test dx, dx
jne 0x419fda
mov eax, edi
jmp 0x41a005
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41a00c
xor ebx, ebx
inc ebx
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00416d02
mov eax, ebx
call fcn.0041db84
ret
Function at 0x41a01f
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 8], ecx
xor edx, edx
lea edi, [ecx + 0x60]
cmp dword [edi + 0x14], 8
mov esi, edx
mov dword [ebp - 4], edx
jb 0x41a042
mov eax, dword [edi]
jmp 0x41a044
mov eax, edi
push edx
push edx
push edx
push 2
push 0x40aa74
push eax
push dword [ecx + 0x78]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0x41a06f
jg 0x41a062
mov esi, eax
jmp 0x41a06b
movzx esi, ax
or esi, 0x80070000
test esi, esi
js 0x41a0e4
cmp dword [edi + 0x14], 8
jb 0x41a077
mov edi, dword [edi]
xor ecx, ecx
lea eax, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp - 8]
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push edi
push dword [eax + 0x78]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
je 0x41a0a7
jg 0x41a09e
mov esi, eax
jmp 0x41a0a7
movzx esi, ax
or esi, 0x80070000
test esi, esi
js 0x41a0e4
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x41a0b6
mov ebx, dword [ebx]
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push 0x40aa74
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x41a0e4
jg 0x41a0db
mov esi, eax
jmp 0x41a0e4
movzx esi, ax
or esi, 0x80070000
cmp dword [ebp - 4], 0
je 0x41a0f3
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
pop ebx
leave
ret

Function at 0x41a14f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x420164]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov edi, edx
push 0x208
push eax
mov esi, eax
mov ebx, ecx
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_memset
xor edx, edx
mov dword [ebp - 0x210], 0x208
add esp, 0xc
mov dword [edi + 0x10], edx
cmp dword [edi + 0x14], 8
jb 0x41a19d
mov eax, dword [edi]
jmp 0x41a19f
mov eax, edi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebx + 0x60]
cmp dword [eax + 0x14], 8
jb 0x41a1af
mov eax, dword [eax]
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push edx
push 2
push 0x40aa9c
push eax
push dword [ebx + 0x78]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0x41a1e6
jg 0x41a1d9
mov esi, eax
jmp 0x41a1e2
movzx esi, ax
or esi, 0x80070000
test esi, esi
js 0x41a219
lea ecx, [ebp - 0x20c]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x41a1f1
sub ecx, edx
sar ecx, 1
jne 0x41a207
mov esi, 0x800700e8
test esi, esi
js 0x41a219
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00416d49
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d370
leave
ret
Function at 0x41b6e5
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x420164]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x224], eax
mov esi, 0x104
mov eax, dword [ebp + 0xc]
xor ebx, ebx
and dword [ebp - 0x210], ebx
push edi
mov dword [ebp - 0x228], eax
xor edi, edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x20c]
push esi
push eax
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], ecx
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
test eax, eax
je 0x41b884
cmp eax, esi
jae 0x41b884
push 0x40ab00
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.0040da31
mov esi, eax
test esi, esi
js 0x41b897
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41b7b6
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
test eax, eax
je 0x41b7f7
cmp eax, esi
jae 0x41b7f7
push 0x40ab20
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.0040da31
mov esi, eax
test esi, esi
js 0x41b897
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_core_version_l1_1_1.dll_GetFileVersionInfoSizeW]
mov edi, eax
mov dword [ebp - 0x214], edi
test edi, edi
je 0x41b7f7
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov ebx, eax
test ebx, ebx
je 0x41b7f7
push edi
push 8
push ebx
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x41b801
mov esi, 0x8007000e
jmp 0x41b897
mov esi, 0x8000ffff
jmp 0x41b897
push edi
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.api_ms_win_core_version_l1_1_1.dll_GetFileVersionInfoW]
test eax, eax
je 0x41b884
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x401494
push edi
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
je 0x41b884
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x218]
movzx eax, word [ecx + 0xa]
mov dword [edx], eax
mov edx, dword [ebp - 0x21c]
movzx eax, word [ecx + 8]
mov dword [edx], eax
xor edx, edx
movzx eax, word [ecx + 0xe]
mov ecx, dword [ebp - 0x220]
mov dword [ecx], eax
cmp eax, 0x23f0
jae 0x41b871
push 0xa
pop ecx
div ecx
mov eax, dword [ebp - 0x224]
mov dword [eax], edx
mov eax, dword [ebp - 0x228]
and dword [eax], 0
jmp 0x41b889
mov esi, 0x8000ffff
test edi, edi
je 0x41b897
push edi
push 0
push ebx
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d370
leave
ret 0xc
Function at 0x41bee0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x448
mov eax, 0x41e874
call fcn.0041dbd5
mov edi, ecx
mov esi, 0x208
lea eax, [ebp - 0x218]
push esi
xor ebx, ebx
push ebx
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x420]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov dword [ebp - 0x454], esi
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x41bf2a
mov eax, dword [edi]
jmp 0x41bf2c
mov eax, edi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push 2
push 0x40ab60
push 0x40ab78
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov esi, eax
test esi, esi
je 0x41bf70
jle 0x41bf6a
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x41bffb
lea eax, [ebp - 0x218]
push eax
push 0x40abd4
push 9
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0041be27
mov esi, eax
add esp, 0x14
test esi, esi
js 0x41bffb
xor eax, eax
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
lea ecx, [ebp - 0x438]
lea eax, [ebp - 0x420]
mov dword [ebp - 0x428], ebx
push eax
call fcn.00416d49
lea edx, [ebp - 0x438]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x450]
call fcn.0041ad65
push eax
mov ecx, edi
call fcn.0041a6cc
push ebx
push 1
lea ecx, [ebp - 0x450]
call fcn.00416d02
push ebx
push 1
lea ecx, [ebp - 0x438]
call fcn.00416d02
mov eax, esi
call fcn.0041db84
ret
Function at 0x41c405
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x258
mov eax, 0x41e988
call fcn.0041dbd5
mov edi, ecx
xor ebx, ebx
lea eax, [ebp - 0x218]
push 0x208
push ebx
push eax
mov esi, ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x264], 0x208
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x41c446
mov eax, dword [edi]
jmp 0x41c448
mov eax, edi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push 2
push 0x40ac54
push 0x40ac68
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0x41c48e
jg 0x41c47d
mov esi, eax
jmp 0x41c486
movzx esi, ax
or esi, 0x80070000
test esi, esi
js 0x41c57a
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x41c497
sub ecx, edx
lea edx, [ebp - 0x218]
sar ecx, 1
cmp ecx, 2
jb 0x41c4e0
cmp word [ebp - 0x218], 0x7b
jne 0x41c4e0
lea eax, [ecx*2 - 2]
lea edx, [ebp - 0x216]
cmp eax, 0x208
jae 0x41c582
xor ebx, ebx
sub ecx, 2
mov word [ebp + eax - 0x218], bx
cmp ecx, 0x24
je 0x41c4ea
mov esi, 0x8000ffff
test esi, esi
js 0x41c57a
push edx
lea ecx, [ebp - 0x260]
call fcn.00416cdb
mov edx, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x248]
call fcn.0041ad65
push 2
push ecx
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0041c588
xor ecx, ecx
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], cx
lea ecx, [ebp - 0x230]
push eax
mov dword [ebp - 0x220], ebx
call fcn.0041aa85
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.0041a6cc
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.00416d02
push ebx
push 1
lea ecx, [ebp - 0x248]
call fcn.00416d02
push ebx
push 1
lea ecx, [ebp - 0x260]
call fcn.00416d02
mov eax, esi
call fcn.0041db84
ret
call fcn.0041d4b8
int3
Function at 0x41d6f4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x41fa00
call fcn.0041d9b8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d754
cmp eax, 0xffffffff
je 0x41d754
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41d74d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41d74d
cmp edx, 0x10000000
jae 0x41d74d
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 0x41d74a
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 0x41d7c0
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 0x41d7fe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x41d7f6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x41d800
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x41d7e6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41d8d0
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 0x41d901
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41d901
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x41d901
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret