joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402370
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.00421fc0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x1000c], eax
mov esi, edx
lea eax, [ebp - 0x10008]
mov ebx, ecx
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombineEx]
test eax, eax
js 0x40246e
push 1
push str.py.ini
lea eax, [ebp - 0x10008]
push eax
push 0x8000
push eax
call edi
test eax, eax
js 0x40246e
push esi
push ebx
lea eax, [ebp - 0x10008]
push eax
push str._Reading_from__s_for__s__s_n
call fcn.00401130
add esp, 0x10
lea eax, [ebp - 0x10008]
push eax
push 0x8000
push dword [ebp - 0x1000c]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
test edi, edi
je 0x402438
lea eax, [ebp - 0x10008]
push eax
push esi
push str._Found__s_in__s_n
call fcn.00401130
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040649c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
lea eax, [ebp - 0x10008]
push eax
jne 0x402459
push str._Did_not_find_file__s_n
call fcn.00401130
add esp, 8
jmp 0x402468
push str.Failed_to_read_from__s_n
push 0
call fcn.00401200
add esp, 0xc
mov edi, dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombineEx]
push 0x8000
lea eax, [ebp - 0x10008]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40253b
push 0x8000
lea eax, [ebp - 0x10008]
push eax
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
test eax, eax
js 0x40253b
push 1
push str.py.ini
lea eax, [ebp - 0x10008]
push eax
push 0x8000
push eax
call edi
test eax, eax
js 0x40253b
push esi
push ebx
lea eax, [ebp - 0x10008]
push eax
push str._Reading_from__s_for__s__s_n
call fcn.00401130
add esp, 0x10
lea eax, [ebp - 0x10008]
push eax
push 0x8000
push dword [ebp - 0x1000c]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
test edi, edi
jne 0x402410
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
lea eax, [ebp - 0x10008]
push eax
jne 0x40252c
push str._Did_not_find_file__s_n
call fcn.00401130
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040649c
mov esp, ebp
pop ebp
ret
push str.Failed_to_read_from__s_n
push 0
call fcn.00401200
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040649c
mov esp, ebp
pop ebp
ret
Function at 0x402610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30014
call fcn.00421fc0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x30014], edx
xor eax, eax
mov dword [ebp - 0x3000c], ecx
mov dword [ebp - 0x30010], ebx
mov dword [ebp - 0x30008], eax
push esi
push edi
test edx, edx
je 0x4027e0
mov esi, dword [ebp + 8]
test esi, esi
je 0x4027e0
lea edi, [ebp - 0x30004]
test esi, esi
jle 0x4026c5
movzx esi, word [edx + ebx*2]
push esi
call fcn.004151d0
mov ecx, dword [ebp - 0x30008]
add esp, 4
test eax, eax
je 0x40267e
test ecx, ecx
je 0x4026bc
cmp esi, 0x22
jne 0x402692
xor eax, eax
test ecx, ecx
sete al
mov dword [ebp - 0x30008], eax
jmp 0x4026ac
cmp esi, 0x2f
je 0x4026a1
cmp esi, 0x5c
je 0x4026a1
mov word [edi], si
jmp 0x4026a9
mov eax, 0x5c
mov word [edi], ax
add edi, 2
mov esi, dword [ebp + 8]
inc ebx
cmp ebx, esi
jge 0x4026c5
mov edx, dword [ebp - 0x30014]
jmp 0x402663
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30010], ebx
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x10004]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4027f3
mov eax, dword [ebp - 0x3000c]
push dword [eax + 0x10]
push dword [eax + 0xc]
lea eax, [ebp - 0x20004]
push 0x8000
push eax
call fcn.00415367
add esp, 0x10
test eax, eax
jne 0x4027f3
mov edi, dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombineEx]
lea eax, [ebp - 0x20004]
push 1
push eax
lea eax, [ebp - 0x10004]
push eax
push 0x8000
push eax
call edi
test eax, eax
js 0x4027f3
push 0x8000
lea eax, [ebp - 0x10004]
push eax
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
test eax, eax
js 0x4027f3
push 1
lea eax, [ebp - 0x30004]
push eax
lea eax, [ebp - 0x10004]
push eax
push 0x8000
push eax
call edi
test eax, eax
js 0x4027f3
lea eax, [ebp - 0x10004]
push 0x8000
push eax
call fcn.00409a24
mov ebx, eax
lea ecx, [ebx*2 + 6]
push ecx
call fcn.0041528e
add esp, 0xc
test eax, eax
je 0x4027f3
mov edi, dword [ebp - 0x3000c]
mov ecx, dword [edi + 0x44]
mov dword [eax], ecx
mov dword [edi + 0x44], eax
lea edi, [eax + 4]
test edi, edi
je 0x4027f3
lea eax, [ebp - 0x10004]
push eax
lea eax, [ebx + 1]
push eax
push edi
call fcn.00414c87
mov ecx, dword [ebp - 0x3000c]
add esp, 0xc
mov edx, dword [ebp - 0x30010]
mov dword [ecx + 8], edi
test edx, edx
je 0x4027e0
mov eax, dword [ebp - 0x30014]
sub esi, edx
mov dword [ecx + 0x20], esi
lea eax, [eax + edx*2]
mov dword [ecx + 0x1c], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040649c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x68
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040649c
mov esp, ebp
pop ebp
ret
Function at 0x402e40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.00421fc0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x38], 0
je 0x402eda
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x402eed
mov ecx, dword [esi + 0x30]
lea ebx, [esi + 0x30]
test ecx, ecx
je 0x402eed
cmp byte [esi + 0x34], 0
je 0x402eda
push ecx
push 0x429528
push eax
call fcn.00415254
add esp, 0xc
test eax, eax
jne 0x402ea1
mov dword [ebp - 0x1000c], str.python3
mov eax, str.py_python3
jmp 0x402eff
push dword [ebx]
push 0x429524
push dword [esi + 0x2c]
call fcn.00415254
add esp, 0xc
test eax, eax
jne 0x402ec8
mov dword [ebp - 0x1000c], str.python2
mov eax, str.py_python2
jmp 0x402eff
push dword [esi + 0x2c]
push dword [ebx]
push str._Cannot_select_defaults_for_tag__.s_n
call fcn.00401130
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040649c
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1000c], str.python
lea ebx, [esi + 0x30]
mov eax, str.py_python
push 0x8000
lea ecx, [ebp - 0x10008]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jne 0x402f39
mov edx, dword [ebp - 0x1000c]
lea eax, [ebp - 0x10008]
push ecx
push eax
mov ecx, str.defaults
call fcn.00402370
mov edi, eax
add esp, 8
test edi, edi
je 0x402eda
lea eax, [edi*2 + 6]
push eax
call fcn.0041528e
add esp, 4
test eax, eax
je 0x402ff3
mov ecx, dword [esi + 0x44]
mov dword [eax], ecx
lea ecx, [eax + 4]
mov dword [esi + 0x44], eax
mov dword [ebp - 0x1000c], ecx
test ecx, ecx
je 0x402ff3
lea eax, [ebp - 0x10008]
push eax
lea eax, [edi + 1]
push eax
push ecx
call fcn.00414c87
add esp, 0xc
push 0x2f
push dword [ebp - 0x1000c]
call fcn.004070b8
mov edx, eax
add esp, 8
test edx, edx
jne 0x402fba
mov eax, dword [ebp - 0x1000c]
mov cl, 1
mov dword [esi + 0x2c], eax
xor eax, eax
mov dword [ebx], edi
mov byte [esi + 0x34], cl
mov byte [esi + 0x35], cl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040649c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1000c]
mov eax, edx
sub eax, ecx
mov dword [esi + 0x24], ecx
sar eax, 1
xor cl, cl
mov dword [esi + 0x28], eax
sub edi, eax
lea eax, [edx + 2]
dec edi
mov dword [esi + 0x2c], eax
xor eax, eax
mov dword [ebx], edi
mov byte [esi + 0x34], cl
mov byte [esi + 0x35], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040649c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x68
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040649c
mov esp, ebp
pop ebp
ret
Function at 0x403a00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push 0
push 0
push 6
push 0
mov ebx, edx
mov dword [ebp - 8], ecx
push str.InstallPath
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x403a78
push dword [ebp - 4]
call fcn.0041528e
mov edi, eax
add esp, 4
test edi, edi
jne 0x403a4f
lea eax, [edi + 0x68]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push edi
push 0
push 6
push 0
push str.InstallPath
push ebx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x403a6f
mov dword [esi + 0x18], edi
jmp 0x403a78
push edi
call fcn.004151ab
add esp, 4
cmp dword [esi + 0x18], 0
je 0x403bed
mov edi, dword [esi + 0xc]
test edi, edi
je 0x403ace
push 0
push 0
push 0
push 0xffffffffffffffff
push str.PythonCore
push 0xffffffffffffffff
push edi
push 9
push 0x428e9c
call dword [sym.imp.KERNEL32.dll_CompareStringEx]
sub eax, 1
je 0x403ace
sub eax, 1
je 0x403b1d
sub eax, 1
je 0x403ace
push str.PythonCore
push 0xffffffffffffffff
push edi
push 0xffffffffffffffff
push str.Error_comparing__.s_and__.s__compare_
push 0
call fcn.00401200
add esp, 0x18
mov eax, dword [ebp - 8]
lea edi, [esi + 0x1c]
cmp byte [eax + 0x39], 0
je 0x403b8f
push str.WindowedExecutablePath
push str.InstallPath
mov edx, ebx
mov ecx, edi
call fcn.00403510
add esp, 8
test eax, eax
jne 0x403c24
cmp dword [edi], eax
je 0x403b9d
push str.WindowedExecutableArguments
push str.InstallPath
lea ecx, [esi + 0x20]
mov edx, ebx
call fcn.00403510
add esp, 8
jmp 0x403b91
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push str._d._d
push dword [esi + 0x10]
call fcn.00401100
add esp, 0x10
cmp eax, 2
je 0x403b52
push dword [esi + 0x10]
push dword [esi + 0xc]
push str.__s__s_has_an_invalid_version_tag_n
call fcn.00401130
add esp, 0xc
jmp 0x403ace
mov eax, dword [ebp - 4]
cmp eax, 2
je 0x403b77
cmp eax, 3
jne 0x403ace
mov eax, dword [ebp - 0xc]
test eax, eax
js 0x403ace
cmp eax, 5
jg 0x403ace
push dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov edx, ebx
push esi
call fcn.00403670
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
test eax, eax
jne 0x403c24
cmp dword [edi], eax
jne 0x403bf9
push str.ExecutablePath
push str.InstallPath
mov edx, ebx
mov ecx, edi
call fcn.00403510
add esp, 8
test eax, eax
jne 0x403c24
cmp dword [edi], eax
je 0x403bda
push str.ExecutableArguments
push str.InstallPath
lea ecx, [esi + 0x20]
mov edx, ebx
call fcn.00403510
add esp, 8
test eax, eax
jne 0x403c24
cmp dword [edi], eax
jne 0x403bf9
push dword [esi + 0x10]
push dword [esi + 0xc]
push str.__s__s_has_no_executable_path_n
call fcn.00401130
add esp, 0xc
mov eax, 0x67
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.SysArchitecture
push 0
lea ecx, [esi + 0x24]
mov edx, ebx
call fcn.00403510
add esp, 8
test eax, eax
jne 0x403c24
push str.DisplayName
push eax
lea ecx, [esi + 0x28]
mov edx, ebx
call fcn.00403510
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403c30
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x218], eax
xor edi, edi
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x21c], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x403e3c
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403e20
mov ecx, dword [ebp - 0x218]
lea edx, [ebp - 0x208]
call fcn.00403010
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
mov esi, eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [esi + 0x14], eax
mov edx, dword [ebp - 0x210]
call fcn.00403a00
add esp, 8
mov edi, eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0x67
jne 0x403d81
push dword [esi + 0xc]
call fcn.004151ab
add esp, 4
push dword [esi + 0x10]
call fcn.004151ab
add esp, 4
push dword [esi + 0x18]
call fcn.004151ab
add esp, 4
push dword [esi + 0x1c]
call fcn.004151ab
add esp, 4
push dword [esi + 0x20]
call fcn.004151ab
add esp, 4
push dword [esi + 0x28]
call fcn.004151ab
mov ecx, dword [esi]
add esp, 4
call fcn.00403120
mov ecx, dword [esi + 4]
mov dword [esi], 0
call fcn.00403120
push esi
mov dword [esi + 4], 0
call fcn.004151ab
mov esi, dword [ebp - 0x20c]
add esp, 4
xor edi, edi
inc ebx
jmp 0x403c71
test edi, edi
jne 0x403e1a
mov ecx, dword [ebp - 0x224]
xor edx, edx
push esi
call fcn.004032d0
mov edi, eax
add esp, 4
test edi, edi
je 0x403e1a
push dword [esi + 0xc]
call fcn.004151ab
add esp, 4
push dword [esi + 0x10]
call fcn.004151ab
add esp, 4
push dword [esi + 0x18]
call fcn.004151ab
add esp, 4
push dword [esi + 0x1c]
call fcn.004151ab
add esp, 4
push dword [esi + 0x20]
call fcn.004151ab
add esp, 4
push dword [esi + 0x28]
call fcn.004151ab
mov ecx, dword [esi]
add esp, 4
call fcn.00403120
mov ecx, dword [esi + 4]
mov dword [esi], 0
call fcn.00403120
push esi
mov dword [esi + 4], 0
call fcn.004151ab
mov esi, dword [ebp - 0x20c]
add esp, 4
cmp edi, 0x6e
jne 0x403e20
xor edi, edi
inc ebx
jmp 0x403c71
mov esi, dword [ebp - 0x20c]
inc ebx
test edi, edi
je 0x403c71
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040649c
mov esp, ebp
pop ebp
ret
cmp eax, 0x103
je 0x403e52
push str.Failed_to_read_installs__tags__from_the_registry
push 0
call fcn.00401200
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040649c
mov esp, ebp
pop ebp
ret
Function at 0x406490
Capabilities:
Accept command line arguments
Extract resource via kernel32 functions
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
pop ebp
jmp fcn.004059c0

Function at 0x406d85
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406dc4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406dc4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406dc4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406dc4
cmp dword [ecx + 0x74], 0xe
jbe 0x406dc4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x415e47
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x415e86
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x415e86
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415e86
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x415e86
cmp dword [ecx + 0x74], 0xe
jbe 0x415e86
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x418e2a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4258ac
push 0x4258a4
push str.FlsAlloc
push 0x1f
call fcn.00418d08
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418e5e
push dword [ebp + 8]
mov ecx, esi
call dword [0x4231a0]
call esi
jmp 0x418e64
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x418ea8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4258bc
push 0x4258b4
push str.FlsGetValue
push 0x21
call fcn.00418d08
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418edf
push dword [ebp + 8]
mov ecx, esi
call dword [0x4231a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x418ee7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4258c4
push 0x4258bc
push str.FlsSetValue
push 0x22
call fcn.00418d08
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418f21
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4231a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41a47b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41a4c6
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041a616
test al, al
jne 0x41a4c0
sub edx, 2
cmp edx, edi
jne 0x41a4a6
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41a4e8
lea eax, [edi + 2]
cmp edx, eax
je 0x41a4e8
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041a3c7
add esp, 0x10
jmp 0x41a5e2
push esi
lea ecx, [ebp - 0x255]
call fcn.0041a616
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a52b
push dword [ebp - 0x25c]
jmp 0x41a4d8
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41a568
cmp word [ebp - 0x226], 0
je 0x41a589
cmp word [ebp - 0x226], ax
jne 0x41a568
cmp word [ebp - 0x224], 0
je 0x41a589
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041a3c7
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41a5d5
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41a542
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41a5bd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41a5e2
push 0x41a1f7
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041efe0
add esp, 0x10
jmp 0x41a5b2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040649c
leave
ret

Function at 0x41b11e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41b12f
pop esi
ret
push ebx
push edi
push esi
call fcn.0041b0e7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00417168
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41b157
push ebx
push esi
push edi
call fcn.00407fc0
add esp, 0xc
push 0
call fcn.0041712e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41b527
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b16c
Function at 0x421bf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x421c1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421c1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4175db
Capabilities:
Authenticate hmac

Disassembly:
das
or al, 0xa0
push ebp
cwde
movsb byte es:[edi], byte [esi]
sbb ecx, esi
cmp byte [0xa613ac6e], bh
stosd dword es:[edi], eax
ljmp 0x4a73
fmul dword [eax - 0x2427c394]
pop esi
cmp eax, 0xb47a2984
movsb byte es:[edi], byte [esi]
std
mov ah, 0x7f
xchg edx, eax
mov edi, 0xd5a88146
xor byte [ebp - 0x65], ch
wait
push ebp
push ebx
mov bl, 0x83
sbb dword [ebp - 0x68], 0x5c
inc edx
fcmovne st(0), st(7)
add ah, al
in al, dx
jno 0x417536
push eax
ret
cmc
lea esp, [ecx - 0x487673fd]
and ah, byte [ecx]
xchg dword [esp + ebx*4], esp
int 0x36
dec edx
mov edx, 0xf06e605c
push ecx
out dx, eax
adc ebp, dword [edi - 0x3b]
imul edi, esi, 0x83154fc6
dec edi
adc eax, 0xd039ca83
dec edi
adc eax, 0xd039ca83
mov al, byte [0x5b444ae5]
inc ebx
pop ebp
in al, 0x81
add eax, 0x7f8f999c
mov edi, 0xba538573
xchg ebp, eax
mov dh, 0x31
or al, 0x48
jae 0x417578
push ebx
mov edx, 0xc31b695
dec eax
dec esi
loopne 0x4175f1
ja 0x417618
mov dh, 0x53
js fcn.00417595
cmp byte [eax + 0x4ff4db1a], ch
inc ebp
cwde
jnp 0x4175a2
movsd dword es:[edi], dword [esi]
inc ebx
jg 0x4175be
retf
pushal
shl dword [ecx + 0xf], 0x8d
adc ebp, ebx
adc al, 0x61
sub edx, eax
dec eax
inc eax
jne 0x41764c
loopne 0x4175ca
invalid
fimul word [ecx + 0x17]
pop esi
pushfd
xlatb
stc
scasd eax, dword es:[edi]
jp 0x41760e
mul byte [eax]
loopne 0x41761d
outsb dx, byte [esi]
pop ecx
xchg dword [edi + eax*4], edi
sti
fnstenv [ecx]
push 0x8619ea8a
inc esi
in eax, dx
cmp dword [ebx], edx
xor al, 0x4c
scasb al, byte es:[edi]
fst qword [ebp - 0x661dcfd6]
cmp edi, eax
dec edi
sub al, 0xd1
xchg ebx, eax
or al, byte [eax - 0x7a]
cmp al, 0xd3
stosd dword es:[edi], eax
sub al, byte [ecx - 0x15]
adc dword [edx + 0x427c7d4e], ecx
invalid
Function at 0x417d5a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea ebx, [ebx]
mov al, 0x89
dec esp
and al, 0x1c
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
call 0x52a5d3
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
cmp dword [esi + 0x7c], edi
jg 0x417dcb
mov eax, dword [esi + 0x7c]
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
mov dword [esp + 8], edx
fild dword [esp + 8]
fmul qword [esi + 0x88]
call 0x52a5d3
mov ecx, dword [esp + 0x3c]
pop edi
pop ebx
xor ecx, esp
call 0x5242ae
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
test edi, edi
js 0x417e71
cmp edi, dword [esi + 0x7c]
jge 0x417e71
mov edx, dword [esi + 0x78]
mov ecx, dword [edx + edi*4]
mov edx, dword [esp + 0x10]
push 1
sub eax, edx
push eax
mov eax, dword [esp + 0x14]
sub ebx, eax
push ebx
push edx
mov dword [esp + 0x18], ecx
push eax
add ecx, 0x138
call fcn.0042c715
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x24]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0042c715
fld qword [esi + 0x88]
fmul qword [0x560e70]
call 0x52a5d3
mov ebx, dword [0x536728]
push eax
push 0
lea eax, [esp + 0x14]
push eax
call ebx
fld qword [esi + 0x88]
fmul qword [0x560e70]
call 0x52a5d3
push eax
push 0
lea ecx, [esp + 0x24]
push ecx
call ebx
inc edi
cmp edi, dword [esi + 0x7c]
jl 0x417dc3
jmp 0x417d93
call fcn.0043093c
int3

Function at 0x42a620
Capabilities:
Encode data using xor

Disassembly:
adc al, 0x9d
adc ecx, dword [0x57f0de1a]
loope 0x42a636
mov dh, 0x2a
adc eax, 0x420361e9
cmp eax, 0x35ae3985
aas
and byte [ebp - 0x250281d3], dh
dec esp
xor eax, 0x2db5203f
jle 0x42a63a
sub eax, 0x4cdafd7e
fimul dword [esi + ebx*4 + 0xf]
push ds
out dx, eax
cmpsd dword [esi], dword es:[edi]
fdiv dword [ebx - 0x62be591]
push eax
xchg edi, eax
push 0xee249a7b
jae 0x42a682
sahf
invalid
inc edx
and edi, dword [ebx - 0x51]
bnd jmp 0x103863ef
outsd dx, dword [esi]
xchg esi, eax
out 0x24, al
nop
inc esp
insd dword es:[edi], dx
and eax, 0x407833ef
jbe 0x42a69e
sti
cmp byte [esi], bl
test eax, 0x14b3fd19
das
mov al, byte [0xefdf54f8]
push 0x94c62219
invalid

Function at 0x444415
Capabilities:
Encode data using xor

Disassembly:
inc esi
xchg ebp, eax
add eax, 0xe5f46b50
test dword [esi + 0x2d90815c], edi
cmp bh, dl
aaa
sahf
mov ah, 0xb0
push 0xffffffffffffffc2
pushfd
add byte [ecx + 0x44], ah
adc esp, ebp
xor ebp, eax
jno 0x44440b
sub ebx, edi