joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408e60
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, 8
cmp dword [ebp + 0x1c], esi
jae 0x408e74
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408eb4
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x408e8a
lea eax, [ebp + 8]
push ebx
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
sete bl
cmp dword [ebp + 0x1c], esi
jb 0x408eac
mov eax, dword [ebp + 8]
push eax
call fcn.004204e8
add esp, 4
mov al, bl
pop ebx
pop esi
pop ebp
ret 0x1c
cmp dword [ebp + 0x1c], esi
jb 0x408ec5
mov ecx, dword [ebp + 8]
push ecx
call fcn.004204e8
add esp, 4
mov al, 1
pop esi
pop ebp
ret 0x1c

Function at 0x408ed0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4501c3
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x460adc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov edi, 8
cmp dword [ebp + 0x1c], edi
jae 0x408f14
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409026
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], edi
jae 0x408f2e
lea eax, [ebp + 8]
lea edx, [ebp - 0x21c]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x408f36
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
sub esp, 0x1c
mov ecx, esp
xor edx, edx
lea eax, [ebp - 0x21c]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x220], esp
mov word [ecx], dx
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x408f80
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00403280
call fcn.00408e60
test al, al
je 0x409056
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], edi
jae 0x408fb4
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2cc]
push ecx
call fcn.00409a80
lea eax, [ebp - 0x2c8]
mov byte [ebp - 4], 1
call fcn.0040aa20
test eax, eax
jne 0x408ffe
mov edx, dword [ebp - 0x2cc]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0x2c0]
lea ecx, [ebp + ecx - 0x2cc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x408ff7
or eax, 4
push 0
call fcn.00408560
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0
call fcn.00409bd0
lea eax, [ebp - 0x26c]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041c55e
add esp, 4
cmp dword [ebp + 0x1c], edi
jb 0x409037
mov edx, dword [ebp + 8]
push edx
call fcn.004204e8
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004204f3
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebp + 0x1c], edi
jb 0x409067
mov ecx, dword [ebp + 8]
push ecx
call fcn.004204e8
add esp, 4
xor al, al
jmp 0x409039
Function at 0x409170
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x460adc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 2
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4091bb
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004204f3
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x230]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x409233
lea edx, [ebp - 0x230]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x409233
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ecx]
mov eax, dword [ebp - 0x234]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004214d1
add esp, 8
test eax, eax
jne 0x40921f
mov edx, dword [ebp - 0x228]
push edx
push eax
push 1
call edi
test eax, eax
je 0x40921f
push 0
push eax
call ebx
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4091f0
pop edi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.004204f3
mov esp, ebp
pop ebp
ret 4
Function at 0x40ab50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f8f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x460adc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40ac70
cmp byte [edi + 0x49], bl
je 0x40ac70
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x40ac64
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x40abc4
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40abdc
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40ac05
dec eax
je 0x40ac09
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x40ac5f
jmp 0x40ac6b
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40ac19
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x40ac42
cmp ebx, 0x10
jae 0x40ac28
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00422903
add esp, 0x10
cmp esi, eax
jne 0x40ac5c
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x40ac68
test esi, esi
jne 0x40abd0
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040a660
jmp 0x40abca
lea ecx, [ebp - 0x2c]
call fcn.00402490
xor al, al
jmp 0x40ac72
lea ecx, [ebp - 0x2c]
call fcn.00402490
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004204f3
mov esp, ebp
pop ebp
ret
Function at 0x40b160
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f03b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x460adc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041c99c
push 4
mov dword [ebp - 4], 0
call fcn.00420ba1
mov edi, eax
add esp, 4
test edi, edi
je 0x40b1dc
call fcn.0041c869
mov dword [edi], eax
call fcn.0041c628
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041c95d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40b1d2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041c985
jmp 0x40b1de
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c440
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f03b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x460adc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0041c99c
push 4
mov dword [ebp - 4], 0
call fcn.00420ba1
mov edi, eax
add esp, 4
test edi, edi
je 0x40c4bc
call fcn.0041c869
mov dword [edi], eax
call fcn.0041c628
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041c95d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40c4b2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041c985
jmp 0x40c4be
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40e3e0
Capabilities:
Create http request
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0
push 0
push 0
push 0
push 0
mov esi, eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
je 0x40e429
cmp dword [esi + 0x14], 8
jb 0x40e40a
mov eax, dword [esi]
jmp 0x40e40c
mov eax, esi
push 0
push 2
push 0
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
jne 0x40e431
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 0x20000005
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edx, dword [ebp - 8]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebx], edx
mov dword [ebx + 4], 0
call esi
push edi
call esi
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f6c0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f848
mov eax, dword fs:[0]
push eax
mov eax, 0x61f0
call fcn.00434120
mov eax, dword [0x460adc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ebx, 8
cmp dword [ebp + 0x1c], ebx
jae 0x40f708
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
jne 0x40f72b
cmp dword [ebp + 0x1c], ebx
jb 0x40f724
mov eax, dword [ebp + 8]
push eax
call fcn.004204e8
add esp, 4
xor al, al
jmp 0x40f84e
lea eax, [ebp - 0x1058]
mov dword [ebp - 0x61e0], eax
lea eax, [ebp - 0x30e8]
lea ecx, [ebp - 0x20a0]
lea edx, [ebp - 0x5178]
mov dword [ebp - 0x61c8], eax
mov eax, 0x824
mov dword [ebp - 0x61f8], ecx
mov dword [ebp - 0x61ec], edx
lea ecx, [ebp - 0x4130]
lea edx, [ebp - 0x61c0]
mov dword [ebp - 0x61f4], eax
mov dword [ebp - 0x61e8], eax
mov dword [ebp - 0x61dc], eax
mov dword [ebp - 0x61d4], eax
mov dword [ebp - 0x61cc], eax
mov dword [ebp - 0x61c4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x61fc], 0x3c
mov dword [ebp - 0x61d8], ecx
mov dword [ebp - 0x61d0], edx
cmp dword [ebp + 0x1c], ebx
jae 0x40f7b1
lea eax, [ebp + 8]
lea ecx, [ebp - 0x61fc]
push ecx
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov edx, dword [ebp - 0x61ec]
mov eax, edx
lea edi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f7d0
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00403280
mov edx, dword [ebp - 0x61d0]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f7f3
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esi + 0x20]
call fcn.00403280
mov edx, dword [ebp - 0x61c8]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f817
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esi + 0x3c]
call fcn.00403280
mov dx, word [ebp - 0x61e4]
mov word [esi + 0x1c], dx
cmp dword [ebp + 0x1c], ebx
jb 0x40f84c
mov eax, dword [ebp + 8]
push eax
call fcn.004204e8
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004204f3
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x416e60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x460adc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x416ea0
or eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004204f3
mov esp, ebp
pop ebp
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x416ed8
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp ebx, dword [ebp - 0x228]
je 0x416eeb
lea ecx, [ebp - 0x230]
push ecx
push esi
call edi
test eax, eax
jne 0x416ec2
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004204f3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.004204f3
mov esp, ebp
pop ebp
ret

Function at 0x416f30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x460adc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
call fcn.00416e60
push 0
push 2
mov ebx, eax
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x416f79
pop esi
or eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004204f3
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x416fa8
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp ebx, dword [ebp - 0x228]
je 0x416fbb
lea ecx, [ebp - 0x230]
push ecx
push esi
call edi
test eax, eax
jne 0x416f92
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004204f3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004204f3
mov esp, ebp
pop ebp
ret
Function at 0x417010
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fe88
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x460adc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
push ebx
mov dword [ebp - 4], ebx
push 2
mov dword [ebp - 0x258], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41709f
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edx, [ebp - 0x2c]
mov word [esi], cx
push edx
mov ecx, esi
call fcn.004028d0
cmp dword [ebp - 0x18], 8
jb 0x41713b
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x417133
lea ecx, [ebp - 0x258]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x417108
lea edx, [ebp - 0x258]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x417108
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x250], eax
jne 0x4170f6
lea eax, [ebp - 0x234]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4170d7
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403280
lea edx, [ebp - 0x258]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4170c3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
xor eax, eax
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov ecx, esi
mov word [esi], ax
call fcn.004028d0
cmp dword [ebp - 0x18], 8
jb 0x41713b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004204e8
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004204f3
mov esp, ebp
pop ebp
ret 4

Function at 0x417160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x460adc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
mov dword [ebp - 0x210], 0
push ecx
mov word [ebp - 0x20c], ax
call fcn.00422fb0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 2
push 0
mov dword [ebp - 0x210], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4171db
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4171f7
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, esi
call fcn.00403280
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.004204f3
mov esp, ebp
pop ebp
ret
Function at 0x417fd0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450641
mov eax, dword fs:[0]
push eax
mov eax, 0xff54
call fcn.00434120
mov eax, dword [0x460adc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x11c
xor ebx, ebx
lea eax, [ebp - 0xff50]
push ebx
push eax
mov edi, ecx
call fcn.00422fb0
add esp, 0xc
lea ecx, [ebp - 0xff50]
push ecx
mov dword [ebp - 0xff50], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4181d1
mov dword [ebp - method.CHDSerial.virtual_0], vtable.CHDSerial.0
mov dword [ebp - 4], ebx
cmp dword [ebp - 0xff4c], 6
jb 0x418129
push 0xfe
lea eax, [ebp - 0xfe0e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0xfe10], dx
call fcn.00422fb0
add esp, 0xc
push 0xfd00
lea ecx, [ebp - 0xfd10]
push ebx
push ecx
call fcn.00422fb0
mov edx, dword [ebp - 0xff48]
add esp, 0xc
push edx
lea eax, [ebp - 0xfe10]
push eax
call fcn.00417cf0
cmp eax, ebx
jle 0x4181cc
lea esi, [ebp - 0xfe10]
mov dword [ebp - 0xff54], eax
mov edi, edi
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0xfe18], 7
mov dword [ebp - 0xfe1c], ebx
mov word [ebp - 0xfe2c], cx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4180d0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0xfe2c]
call fcn.00403280
lea ecx, [ebp - 0xfe2c]
mov byte [ebp - 4], 1
call fcn.00406db0
mov byte [ebp - 4], bl
cmp dword [ebp - 0xfe18], 8
jb 0x418116
mov edx, dword [ebp - 0xfe2c]
push edx
call fcn.004204e8
add esp, 4
add esi, 0x100
dec dword [ebp - 0xff54]
jne 0x4180b0
jmp 0x4181cc
mov dword [ebp - 0xff54], ebx
mov ecx, dword [ebp - 0xff54]
call fcn.004173f0
mov ecx, eax
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x418140
sub ecx, esi
sar ecx, 1
je 0x4181b6
xor ecx, ecx
mov word [ebp - 0xfe2c], cx
mov ecx, eax
mov dword [ebp - 0xfe18], 7
mov dword [ebp - 0xfe1c], ebx
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x418170
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xfe2c]
call fcn.00403280
lea ecx, [ebp - 0xfe2c]
mov byte [ebp - 4], 2
call fcn.00406db0
mov byte [ebp - 4], bl
cmp dword [ebp - 0xfe18], 8
jb 0x4181b6
mov edx, dword [ebp - 0xfe2c]
push edx
call fcn.004204e8
add esp, 4
mov eax, dword [ebp - 0xff54]
inc eax
mov dword [ebp - 0xff54], eax
cmp eax, 4
jl 0x41812f
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004204f3
mov esp, ebp
pop ebp
ret
Function at 0x419e80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fc82
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x460adc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xdc], ebx
push ebx
mov edi, ecx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x45631c
mov ecx, esi
mov dword [ebp - 0xe0], esi
mov word [esi], ax
call fcn.00403280
push 0xc6
lea edx, [ebp - 0xd6]
mov dword [ebp - 4], ebx
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0xdc], 1
mov word [ebp - 0xd8], cx
call fcn.00422fb0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x419f0f
mov edi, dword [edi]
push edi
push 0x63
lea eax, [ebp - 0xd8]
push eax
push 0x457090
push str.appid
push str.root
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xd8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x419f37
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, esi
call fcn.00403280
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004204f3
mov esp, ebp
pop ebp
ret
Function at 0x419f80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fd38
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x460adc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x114], ebx
push ebx
mov edi, ecx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x45631c
mov ecx, esi
mov dword [ebp - 0x118], esi
mov word [esi], ax
call fcn.00403280
push 0xc6
lea edx, [ebp - 0xd6]
mov dword [ebp - 4], ebx
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x114], 1
mov word [ebp - 0xd8], cx
call fcn.00422fb0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x41a00f
mov edi, dword [edi]
push edi
push 0x63
lea eax, [ebp - 0xd8]
push eax
push 0x456380
push 0x4570cc
push str.root
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xe0], 7
mov dword [ebp - 0xe4], ebx
mov word [ebp - 0xf4], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41a050
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0xd8]
push edx
lea ecx, [ebp - 0xf4]
call fcn.00403280
push 1
push 0x456e5c
lea eax, [ebp - 0xf4]
push eax
xor eax, eax
mov dword [ebp - 4], 1
call fcn.00404e40
cmp eax, 0xffffffff
je 0x41a0d1
push eax
push ebx
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0xf4]
call fcn.00402520
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004028d0
mov byte [ebp - 4], 1
cmp dword [ebp - 0xfc], 8
jb 0x41a0fe
mov edx, dword [ebp - 0x110]
push edx
call fcn.004204e8
add esp, 4
jmp 0x41a0fe
lea eax, [ebp - 0xd8]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41a0e0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xd8]
push eax
mov ecx, esi
call fcn.00403280
cmp dword [esi + 0x10], ebx
jne 0x41a111
push 1
push 0x456380
mov ecx, esi
call fcn.00403280
cmp dword [ebp - 0xe0], 8
jb 0x41a129
mov ecx, dword [ebp - 0xf4]
push ecx
call fcn.004204e8
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004204f3
mov esp, ebp
pop ebp
ret