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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
cmp byte [0x4f7323], 1
jne 0x4bf5c7
test byte [0x4f7322], 1
jne 0x4bf5e6
jmp 0x4bf614
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x4f7323], 1
test eax, eax
setne byte [0x4f7322]
je 0x4bf614
mov edi, dword [fcn.004bf070]
push 2
call edi
add esp, 4
push ebp
push ebx
push esi
push str.libunwind:___unw_set_reg_cursor_p__regNum_d__value0x_x__n
push eax
call fcn.004c3d30
add esp, 0x14
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x4f3688]
mov ecx, esi
push ebx
call edi
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x4bf6a8
mov eax, dword [esi]
mov edi, dword [eax + 0x10]
mov ecx, edi
call dword [0x4f3688]
mov ecx, esi
push ebp
push ebx
call edi
xor eax, eax
cmp ebx, 0xffffffff
jne 0x4bf6a8
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [0x4f3688]
mov eax, esp
mov ecx, esi
push eax
call edi
mov eax, dword [esi]
mov edi, dword [eax + 0x34]
mov ecx, edi
call dword [0x4f3688]
mov ecx, esi
push 0
call edi
cmp dword [esp + 0x10], 0
je 0x4bf6a6
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x4f3688]
mov ecx, esi
push 0xfffffffffffffffe
call edi
mov edi, eax
add edi, dword [esp + 0x10]
mov eax, dword [esi]
mov ebx, dword [eax + 0x10]
mov ecx, ebx
call dword [0x4f3688]
mov ecx, esi
push edi
push 0xfffffffffffffffe
call ebx
xor eax, eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4bf840
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x4f7323], 1
jne 0x4bf85a
test byte [0x4f7322], 1
jne 0x4bf879
jmp 0x4bf8a5
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x4f7323], 1
test eax, eax
setne byte [0x4f7322]
je 0x4bf8a5
mov edi, dword [fcn.004bf070]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_step_cursor_p__n
push eax
call fcn.004c3d30
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [0x4f3688]
mov ecx, esi
push 0
call edi
pop esi
pop edi
ret

Function at 0x4bf8c0
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x4f7323], 1
jne 0x4bf8da
test byte [0x4f7322], 1
jne 0x4bf8f9
jmp 0x4bf925
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x4f7323], 1
test eax, eax
setne byte [0x4f7322]
je 0x4bf925
mov edi, dword [fcn.004bf070]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_step_stage2_cursor_p__n
push eax
call fcn.004c3d30
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [0x4f3688]
mov ecx, esi
push 1
call edi
pop esi
pop edi
ret
Function at 0x4bf940
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp byte [0x4f7323], 1
jne 0x4bf95f
test byte [0x4f7322], 1
jne 0x4bf97e
jmp 0x4bf9ab
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x4f7323], 1
test eax, eax
setne byte [0x4f7322]
je 0x4bf9ab
mov edi, dword [fcn.004bf070]
push 2
call edi
add esp, 4
push ebx
push esi
push str.libunwind:___unw_get_proc_info_cursor_p__info_p__n
push eax
call fcn.004c3d30
add esp, 0x10
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [0x4f3688]
mov ecx, esi
push ebx
call edi
xor ecx, ecx
cmp dword [ebx + 4], 0
mov eax, 0xffffe66b
cmovne eax, ecx
pop esi
pop edi
pop ebx
ret

Function at 0x4bf9d0
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x4f7323], 1
jne 0x4bf9ea
test byte [0x4f7322], 1
jne 0x4bfa09
jmp 0x4bfa35
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x4f7323], 1
test eax, eax
setne byte [0x4f7322]
je 0x4bfa35
mov edi, dword [fcn.004bf070]
push 2
call edi
add esp, 4
push esi
push str.libunwind:___unw_resume_cursor_p__n
push eax
call fcn.004c3d30
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x28]
mov ecx, edi
call dword [0x4f3688]
mov ecx, esi
call edi
mov eax, 0xffffe674
pop esi
pop edi
ret

Function at 0x4bfa50
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp byte [0x4f7323], 1
jne 0x4bfa74
test byte [0x4f7322], 1
jne 0x4bfa93
jmp 0x4bfac1
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x4f7323], 1
test eax, eax
setne byte [0x4f7322]
je 0x4bfac1
mov edi, dword [fcn.004bf070]
push 2
call edi
add esp, 4
push ebp
push ebx
push esi
push str.libunwind:___unw_get_proc_name_cursor_p__buf_p__bufLen_lu__n
push eax
call fcn.004c3d30
add esp, 0x14
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
mov eax, dword [esi]
mov edi, dword [eax + 0x30]
mov ecx, edi
call dword [0x4f3688]
mov ecx, esi
push dword [esp + 0x20]
push ebp
push ebx
call edi
xor ecx, ecx
test al, al
mov eax, 0xffffe674
cmovne eax, ecx
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4c04e0
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x4f7321], 1
jne 0x4c04f3
movzx eax, byte [0x4f7320]
and al, 1
ret
push str.LIBUNWIND_PRINT_UNWINDING
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
setne al
setne byte [0x4f7320]
mov byte [0x4f7321], 1
and al, 1
ret
Function at 0x4c3710
Capabilities:
Enumerate process modules
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x1014
call fcn.004bc400
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0x1000
push edx
push eax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x4c383a
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, 0
cmp ecx, 4
jb 0x4c38a3
shr ecx, 2
mov dword [esp + 8], ecx
jmp 0x4c3773
mov edx, dword [esp + 0xc]
inc edx
xor eax, eax
mov ecx, dword [esp + 8]
cmp edx, ecx
je 0x4c38a3
mov dword [esp + 0xc], edx
mov esi, dword [esp + edx*4 + 0x14]
mov eax, dword [esi + 0x3c]
movzx ecx, word [esi + eax + 0x14]
mov edx, dword [esp + 0x102c]
mov dword [edx], esi
mov dword [esp], esi
movzx ebx, word [esi + eax + 6]
test ebx, ebx
je 0x4c3760
add eax, dword [esp]
lea ebp, [eax + ecx]
add ebp, 0x18
mov dword [esp + 4], 0
xor ecx, ecx
jmp 0x4c37c2
mov ecx, esi
mov eax, ecx
and al, byte [esp + 4]
test al, 1
jne 0x4c3836
add ebp, 0x28
dec ebx
je 0x4c3760
mov esi, ecx
mov edi, dword [ebp + 0xc]
add edi, dword [esp]
push 8
push str..text
push ebp
call sub.msvcrt.dll_strncmp
add esp, 0xc
test eax, eax
je 0x4c3810
push 8
push str..eh_frame
push ebp
call sub.msvcrt.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x4c37b0
mov ecx, dword [esp + 0x102c]
mov dword [ecx + 4], edi
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
mov al, 1
mov dword [esp + 4], eax
jmp 0x4c37b0
mov eax, dword [ebp + 8]
add eax, edi
mov edx, dword [esp + 0x1028]
cmp edi, edx
setbe cl
cmp eax, edx
seta al
and al, cl
mov ecx, esi
or cl, al
mov eax, ecx
and al, byte [esp + 4]
test al, 1
je 0x4c37bc
mov al, 1
jmp 0x4c38a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp byte [0x4f7321], 1
jne 0x4c3856
test byte [0x4f7320], 1
jne 0x4c3875
jmp 0x4c38a1
push str.LIBUNWIND_PRINT_UNWINDING
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x4f7321], 1
test eax, eax
setne byte [0x4f7320]
je 0x4c38a1
mov edi, dword [fcn.004bf070]
push 2
call edi
add esp, 4
push esi
push str.libunwind:_findUnwindSections:_EnumProcessModules_failed__returned_error__d_n
push eax
call fcn.004c3d30
add esp, 0xc
push 2
call edi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
xor eax, eax
add esp, 0x1014
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x40dad7
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 4]
push edi
mov edi, ecx
test esi, esi
jns 0x40db05
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
and eax, 0xfffffffe
and esi, 0x7fffffff
push eax
add esi, edx
push esi
call fcn.0040db86
add esp, 0xc
jmp 0x40db82
push ebx
mov ecx, 0x7fffffff
and esi, ecx
add esi, edx
lea eax, [ebp + 8]
mov ebx, dword [esi]
and dword [ebp + 8], 0
push eax
push 4
push dword [esi + 4]
and ebx, ecx
add ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40db81
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
mov ecx, dword [eax + 0x1c]
push 0
sub ecx, edi
test byte [ebp + 0xc], 0x40
pop eax
setne al
lea eax, [eax*2 - 1]
push eax
mov eax, dword [0x63fd84]
imul eax, dword [esi]
push eax
mov eax, dword [0x63fd8c]
imul eax, dword [esi]
push eax
mov eax, dword [0x63fd80]
mov edx, dword [esi + 4]
xor eax, ecx
push eax
mov ecx, ebx
call fcn.0040e105
add esp, 0x14
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x40e0b5
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebx
mov ebx, dword [ecx + 0x3c]
add ebx, ecx
push ebp
movzx eax, word [ebx + 0x14]
lea ebp, [ebx + 0x18]
add ebp, eax
push esi
xor eax, eax
xor esi, esi
push edi
mov dword [esp + 0x10], edx
cmp ax, word [ebx + 6]
jae 0x40e0f5
mov edi, ebp
push edi
push edx
call fcn.0041dd46
pop ecx
pop ecx
test eax, eax
je 0x40e0fd
movzx eax, word [ebx + 6]
mov edx, dword [esp + 0x10]
inc esi
add edi, 0x28
cmp esi, eax
jb 0x40e0d8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
imul esi, esi, 0x28
lea eax, [esi + ebp]
jmp 0x40e0f7
Function at 0x40e196
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x42988d
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
mov esi, ecx
push edi
mov ebx, edx
test esi, esi
je 0x40e25e
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi + 0x7c], 0
je 0x40e25e
mov eax, dword [edi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add ecx, esi
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x24]
add ecx, esi
add edx, esi
cmp byte [ebx], 0xff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
je 0x40e219
push ebx
call fcn.0041d5e0
push eax
push ebx
call fcn.004119f8
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
add esp, 0xc
jmp 0x40e223
mov ecx, dword [ebx + 1]
xor ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
xor ebx, ebx
cmp dword [eax + 0x18], ebx
jbe 0x40e25e
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x40e254
add eax, esi
push eax
mov dword [esp + 0x20], eax
call fcn.0041d5e0
push eax
push dword [esp + 0x24]
call fcn.004119f8
add esp, 0xc
cmp dword [esp + 0x10], eax
je 0x40e272
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, dword [eax + 0x18]
jb 0x40e22a
xor eax, eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
movzx eax, word [eax + ebx*2]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [edi + 0x78]
jb 0x40e36e
mov eax, dword [edi + 0x7c]
add eax, dword [edi + 0x78]
cmp ecx, eax
jae 0x40e36e
lea eax, [ecx + esi]
push eax
lea ecx, [esp + 0x2c]
call fcn.00402134
xor ebx, ebx
mov dword [esp + 0x64], ebx
push 1
push ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x18], 0x2e
call fcn.004022a5
mov esi, eax
cmp esi, 0xffffffff
je 0x40e35b
push esi
push ebx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.00410a91
mov byte [esp + 0x64], 1
cmp dword [eax + 0x14], 0x10
jb 0x40e2e9
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x40]
call fcn.00402161
test edi, edi
je 0x40e35b
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.00410a91
mov byte [esp + 0x64], 2
cmp dword [eax + 0x14], 0x10
jb 0x40e324
mov eax, dword [eax]
push ebx
push dword [ebp + 0xc]
mov edx, eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0040e196
add esp, 0xc
mov esi, eax
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x40]
call fcn.00402161
or dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00402161
mov eax, esi
jmp 0x40e260
or dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00402161
jmp 0x40e25e
lea eax, [ecx + esi]
jmp 0x40e260
Function at 0x40ec07
Capabilities:
Parse pe header

Disassembly:
push 8
push 0x436900
call fcn.00428820
mov esi, ecx
and dword [ebp - 4], 0
lea edi, [esi + 0x80]
push dword [ebp + 0xc]
push 0x40
push 0
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40ed08
or dword [ebp - 4], 0xffffffff
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x40ecf7
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x40ecf7
mov dword [ebp - 4], 1
lea edi, [esi + 0xc0]
push dword [ebp + 0xc]
push 0xf8
push eax
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40ed08
or dword [ebp - 4], 0xffffffff
cmp dword [edi], 0x4550
jne 0x40ecf7
mov eax, 0x10b
cmp word [esi + 0xd8], ax
jne 0x40ecf7
movzx eax, word [esi + 0xc6]
test ax, ax
je 0x40ecf7
mov edi, eax
imul edi, edi, 0x28
movzx ecx, word [esi + 0xd4]
mov ebx, dword [esi + 0xbc]
add ecx, 0x18
add ebx, ecx
push edi
call fcn.0041de58
pop ecx
mov dword [esi + 0x1b8], eax
test eax, eax
jne 0x40eccc
push 8
jmp 0x40ed0e
mov dword [ebp - 4], 2
push dword [ebp + 0xc]
push edi
push ebx
push eax
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40ed08
or dword [ebp - 4], 0xffffffff
lea eax, [ebx + edi]
mov dword [esi + 0x18], eax
xor eax, eax
jmp 0x40ed0f
push 0xb
jmp 0x40ed0e
or dword [ebp - 4], 0xffffffff
push 0x1e
pop eax
call fcn.0042885b
ret 8

Function at 0x4119f8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov ecx, 0xff077af4
test edi, edi
je 0x411a31
movzx eax, byte [ebx]
cdq
push 0
xor esi, edx
push 0x1000193
xor ecx, eax
push esi
push ecx
inc ebx
call fcn.004281f0
xor esi, esi
mov ecx, eax
dec edi
jne 0x411a13
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411a3a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x643178]
or eax, dword [0x64317c]
push ebx
push esi
mov ebx, edx
push edi
mov dword [esp + 0xc], ebx
mov edi, ecx
jne 0x411a9a
xor esi, esi
mov eax, esi
push 8
cdq
pop ebx
mov ecx, eax
shrd eax, edx, 1
and ecx, 1
shr edx, 1
or ecx, 0
je 0x411a7c
xor eax, 0xd7870f42
xor edx, 0xc96c5795
dec ebx
jne 0x411a61
mov dword [esi*8 + 0x642980], eax
mov dword [esi*8 + 0x642984], edx
inc esi
cmp esi, 0x100
jl 0x411a5b
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
not ecx
not edx
test edi, edi
je 0x411acb
movzx eax, byte [edi]
xor eax, ecx
shrd ecx, edx, 8
and eax, 0xff
shr edx, 8
xor ecx, dword [eax*8 + 0x642980]
xor edx, dword [eax*8 + 0x642984]
inc edi
dec ebx
jne 0x411aa8
pop edi
not ecx
pop esi
not edx
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416fe1
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42986b
push eax
mov dword fs:[0], esp
sub esp, 0x38
cmp dword [0x642954], 0
push esi
je 0x417080
mov esi, 0x642944
push ecx
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00419209
mov ecx, eax
call fcn.00419432
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x417031
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push dword [eax + ecx*4]
lea ecx, [esp + 0x24]
call fcn.00410d25
and dword [esp + 0x44], 0
mov ecx, esi
call fcn.004190be
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x417062
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
or dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00402161
cmp dword [0x642954], 0
jne 0x41700e
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x429340
call fcn.0041e59c
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0x10
mov edi, edx
jb 0x4170ae
mov eax, dword [esi]
jmp 0x4170b0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41715e
push ecx
push ecx
mov ecx, esi
call fcn.00418714
cmp eax, 0xffffffff
je 0x417103
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00410a91
and dword [ebp - 4], 0
mov edx, edi
mov ecx, eax
call fcn.00417090
mov bl, al
neg bl
sbb bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00402161
inc bl
je 0x417103
xor al, al
jmp 0x41716a
mov ecx, dword [0x641ad4]
test ecx, ecx
je 0x417120
cmp dword [esi + 0x14], 0x10
jb 0x417117
mov eax, dword [esi]
jmp 0x417119
mov eax, esi
push 0
push eax
call ecx
jmp 0x41714a
cmp dword [0x640c48], 0
je 0x417148
push 0x18
pop eax
call fcn.0041e9c0
push esp
push 0x434ff8
call fcn.0040de8b
push eax
call dword [0x640c48]
add esp, 0xc
jmp 0x4170ff
xor eax, eax
test eax, eax
je 0x4170ff
push esi
mov ecx, 0x642944
call fcn.0041903b
mov byte [edi], 0
jmp 0x417168
test eax, 0x410
je 0x4170ff
mov byte [edi], 1
mov al, 1
lea esp, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417dc8
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x42a371
call fcn.0041e59c
mov eax, 0x1030
call fcn.0041e9c0
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x1048], ebx
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push 0x63bb18
push 0x80000001
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0xf
pop edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov dword [esp + 0x1048], ebx
xor ebp, ebp
inc ebp
mov dword [esp + 0x1c], ebp
test eax, eax
jne 0x417ebe
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push dword [esp + 0x1068]
mov dword [esp + 0x24], 0x1000
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x3c], bl
test eax, eax
jne 0x417eb4
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 2
ja 0x417eb4
push ecx
lea eax, [esp + 0x40]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.004024bb
mov dword [esp + 0x1048], ebp
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0041098d
mov byte [esp + 0x1048], bl
lea ecx, [esp + 0x20]
call fcn.00402161
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1040]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41a628
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [0x63b120]
push edi
test edx, edx
je 0x41a652
lea eax, [edx - 1]
shr eax, 2
inc eax
imul ecx, ecx, 0x4848c0c0
xor ecx, esi
sub edx, 4
dec eax
jne 0x41a644
mov eax, dword [ebp + 8]
shr edx, 2
lea edi, [eax + edx*4]
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x41a683
dec edx
shr edx, 2
inc edx
imul ecx, ecx, 0x4848c0c0
xor ecx, esi
mov eax, ecx
not eax
xor dword [edi], eax
lea edi, [edi + 4]
dec edx
je 0x41a683
mov esi, dword [0x63b120]
jmp 0x41a667
pop edi
pop esi
pop ebp
ret
Function at 0x425f72
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x63ab10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [fcn.0041af1e]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0041f53e
mov dword [ebp - 0x14], eax
cmp dword [0x640b78], edi
jne 0x426063
push 0x800
push edi
push 0x42d298
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x425ff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x426143
push 0x42d298
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x426143
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x426143
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x640b78], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x640b7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x640b80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x640b88], eax
test eax, eax
je 0x426060
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x640b84], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x426088
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42607b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x42609d
push 4
pop eax
jmp 0x426145
cmp dword [ebp - 0x14], edi
je 0x42609d
push dword [0x640b78]
call dword [fcn.0041af22]
push 3
jmp 0x426082
mov eax, dword [0x640b84]
mov ebx, dword [fcn.0041af22]
cmp eax, esi
je 0x4260fb
cmp dword [0x640b88], esi
je 0x4260fb
push eax
call ebx
push dword [0x640b88]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4260fb
test eax, eax
je 0x4260fb
call ecx
test eax, eax
je 0x4260f0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4260f0
test byte [ebp - 8], 1
jne 0x4260fb
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x42612b
mov eax, dword [0x640b7c]
cmp eax, esi
je 0x426128
push eax
call ebx
test eax, eax
je 0x426128
call eax
mov edi, eax
test edi, edi
je 0x426128
mov eax, dword [0x640b80]
cmp eax, esi
je 0x426128
push eax
call ebx
test eax, eax
je 0x426128
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x640b78]
call ebx
test eax, eax
je 0x426143
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x426145
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f29f
leave
ret