joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002df80
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1002e144
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f000]
push edi
or ebp, 0xffffffff
jmp 0x1002dfaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1002dfb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1002dfa0
mov eax, 1
add ebx, ebx
jne 0x1002dfc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1002dfb8
jne 0x1002dfd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002dfb8
xor ecx, ecx
sub eax, 3
jb 0x1002dfe8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1002e05a
mov ebp, eax
add ebx, ebx
jne 0x1002dff3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1002e000
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1002e024
inc ecx
add ebx, ebx
jne 0x1002e010
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1002e005
jne 0x1002e021
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1002e005
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1002e044
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1002e035
jmp 0x1002dfa6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1002e044
add edi, ecx
jmp 0x1002dfa6
pop esi
mov edi, esi
mov ecx, 0xc42
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1002e062
cmp byte [edi], 0x11
jne 0x1002e062
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1002e067
lea edi, [esi + 0x2a000]
mov eax, dword [edi]
or eax, eax
je 0x1002e0d6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e44c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e49c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1002e094
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2e4a0]
or eax, eax
je 0x1002e0d0
mov dword [ebx], eax
add ebx, 4
jmp 0x1002e0b1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1002e107
cmp al, 0xef
ja 0x1002e0fa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1002e0dc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1002e0e9
mov ebp, dword [esi + 0x2e4a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1002e13b
sub esp, 0xffffff80
jmp 0x10013194

Function at 0x40c0e2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040bda2
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e004]
jne 0x40100a
repz ret
jmp fcn.00401424

Function at 0x406ecc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404a1c
and dword [ebp - 0x14], 0
cmp dword [0x430d78], 0
mov dword [ebp - 0x18], eax
jne 0x406f7f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407027
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407027
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x430d78], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x430d7c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x430d80], eax
call edi
push eax
call esi
mov dword [0x430d88], eax
test eax, eax
je 0x406f7f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x430d84], eax
mov eax, dword [0x430d84]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406fd8
cmp dword [0x430d88], ecx
je 0x406fd8
push eax
call esi
push dword [0x430d88]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406fd8
test ebx, ebx
je 0x406fd8
call edi
test eax, eax
je 0x406fcf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406fcf
test byte [ebp - 8], 1
jne 0x406fd8
or dword [ebp + 0x10], 0x200000
jmp 0x40700b
mov eax, dword [0x430d7c]
cmp eax, dword [ebp - 0x18]
je 0x40700b
push eax
call esi
test eax, eax
je 0x40700b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40700b
mov eax, dword [0x430d80]
cmp eax, dword [ebp - 0x18]
je 0x40700b
push eax
call esi
test eax, eax
je 0x40700b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x430d78]
call esi
test eax, eax
je 0x407027
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407029
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x401704
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004015f9
mov dword [ebp - 0xc], eax
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], 0x3000
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call eax
sub esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401767
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.____Error_allocating_memory_in_process:__ld__n
call fcn.00401560
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call eax
sub esp, 0x14
test eax, eax
je 0x40179f
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x10]
je 0x4017b6
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.____Error_writing_data_to_process:__ld_n
call fcn.00401560
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x401823
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp], str.ntdll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [esp + 4], str.CsrClientCallServer
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401862
mov eax, 0xffffffff
jmp 0x401941
mov byte [ebp - 0x18], 0x33
mov byte [ebp - 0x17], 0xc0
mov byte [ebp - 0x16], 0x8b
mov byte [ebp - 0x15], 0x4c
mov byte [ebp - 0x14], 0x24
mov byte [ebp - 0x13], 4
mov byte [ebp - 0x12], 0x89
mov byte [ebp - 0x11], 0x41
mov byte [ebp - 0x10], 0x20
mov byte [ebp - 0xf], 0xc2
mov byte [ebp - 0xe], 0x10
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0xc
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
test eax, eax
je 0x40193c
cmp dword [ebp + 8], 0
jne 0x4018f4
mov dword [esp + 8], 0xc
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x408040
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 8], edx
jmp 0x40190f
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0x408040
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0xc
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
mov eax, 0
jmp 0x401941
mov eax, 0xffffffff
leave
ret
Function at 0x401943
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004015f9
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call eax
sub esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
jne 0x401a11
cmp dword [ebp - 0x10], 8
jne 0x401a11
mov dword [esp], 0
call fcn.00401823
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call eax
sub esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x10], eax
mov dword [esp], 1
call fcn.00401823
cmp dword [ebp - 0xc], 0
jne 0x401a2a
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.____Error_injecting_remote_thread_in_process:__d_n
call fcn.00401560
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
lea eax, [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x18]
leave
ret

Function at 0x40212d
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00401644
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ResumeThread]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
leave
ret
Function at 0x402163
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004015f9
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xf01ff
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call eax
sub esp, 0xc
test eax, eax
jne 0x4021b1
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.____Error_obtaining_process_token:__ld_n
call fcn.00401560
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SeDebugPrivilege
mov dword [esp], 0
mov eax, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
call eax
sub esp, 0xc
test eax, eax
jne 0x4021ec
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.____Error_obtaining_original_luid:__ld_n
call fcn.00401560
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
lea edx, [ebp - 0x28]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call eax
sub esp, 0x18
test eax, eax
jne 0x402258
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.____Error_adjusting_token_privileges:__ld_n
call fcn.00401560
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
leave
ret
Function at 0x40227a
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4022ba
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.____Error_obtaining_snapshot_handle:__ld_n
call fcn.00401560
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32FirstW
sub esp, 8
test eax, eax
jne 0x4022f7
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.____Error_enumerating_the_first_process:__ld_n
call fcn.00401560
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x238]
add eax, 0x24
mov dword [esp], eax
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x40232b
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x230]
jmp 0x40236f
lea eax, [ebp - 0x238]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32NextW
sub esp, 8
test eax, eax
jne 0x4022f7
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.____Error_finding_process_by_name:__S_n
call fcn.00401560
mov eax, 0
leave
ret
Function at 0x403ae0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00403b40
Function at 0x4044d0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x404508
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x4044fe
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x40450a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x4044f0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40e454
Capabilities:
Delete file
Write file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [0x49d040]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, edx
mov ebp, ecx
mov dword [esp + 0x10], ebp
push edi
test esi, esi
je 0x40e56f
test ebp, ebp
je 0x40e56f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x40e56f
mov ecx, ebx
call fcn.00410205
mov edi, eax
mov ecx, ebx
mov dword [esp + 0x10], edi
call fcn.0041018b
mov ecx, ebx
add edi, eax
call fcn.00410256
test eax, eax
je 0x40e4bd
mov eax, dword [ebx + 0x70]
cmp eax, edi
cmovbe eax, edi
mov edi, eax
add edi, dword [ebx + 0x74]
xor ecx, ecx
mov eax, 0x4d42
push ecx
push 0x80
push 2
mov word [esp + 0x28], ax
lea eax, [edi + 0xe]
push ecx
mov dword [esp + 0x2e], eax
mov eax, dword [esp + 0x20]
push ecx
push 0xc0000000
add eax, 0xe
mov dword [esp + 0x3a], ecx
push ebp
mov dword [esp + 0x42], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40e505
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x40e56f
and dword [esp + 0x18], 0
lea eax, [esp + 0x18]
push 0
push eax
push 0xe
lea eax, [esp + 0x28]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e557
cmp dword [esp + 0x18], 0xe
jne 0x40e557
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e557
cmp dword [esp + 0x18], edi
jne 0x40e557
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x40e571
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045d68f
add esp, 0x20
ret
Function at 0x413314
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40
mov eax, dword [0x49d040]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x413427
test edi, edi
je 0x413427
lea eax, [esp + 0xc]
xor ebp, ebp
push eax
push 0x20019
push ebp
push str.SoftwareElectronGbxDump
push 0x80000001
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413427
cmp dword [esp + 0xc], ebp
je 0x413427
mov eax, dword [edi]
push esi
push 4
mov dword [esp + 0x20], eax
xor esi, esi
pop eax
mov dword [esp + 0x14], eax
inc esi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.FontHeight
push dword [esp + 0x24]
call ebp
test eax, eax
jne 0x4133b8
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 0x7f]
cmp eax, 0xfe
ja 0x4133b8
mov dword [edi], ecx
jmp 0x4133ba
xor esi, esi
push 0x2c
pop edi
push edi
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0045e8a0
add esp, 0xc
mov dword [esp + 0x14], edi
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 3
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push str.WindowPlacement
push dword [esp + 0x24]
call ebp
test eax, eax
jne 0x413416
cmp dword [esp + 0x14], edi
jne 0x413416
cmp dword [esp + 0x20], edi
jne 0x413416
push edi
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.0045ea00
add esp, 0xc
jmp 0x413418
xor esi, esi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
jmp 0x413429
xor eax, eax
mov ecx, dword [esp + 0x48]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045d68f
add esp, 0x40
ret

Function at 0x41343b
Capabilities:
Set registry value

Disassembly:
sub esp, 0x90
mov eax, dword [0x49d040]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
mov esi, dword [0x4b1798]
lea eax, [esp + 0x10]
push edi
push 0x2c
pop ebp
push ebp
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.0045e8a0
add esp, 0xc
mov dword [esp + 0x14], ebp
test edi, edi
je 0x413483
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowPlacement]
push 0x5c
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.0045e8a0
add esp, 0xc
test esi, esi
je 0x4134a5
lea eax, [esp + 0x40]
push eax
push 0x5c
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push 0x20006
push ebx
push str.SoftwareElectronGbxDump
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413507
cmp dword [esp + 0x10], ebx
je 0x413507
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [esp + 0x40]
push 4
push eax
push 4
push ebx
push str.FontHeight
push dword [esp + 0x24]
call esi
push ebp
lea eax, [esp + 0x18]
push eax
push 3
push ebx
push str.WindowPlacement
push dword [esp + 0x24]
call esi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045d68f
add esp, 0x90
ret
Function at 0x4136d9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x49d040]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionThemesPersonalize
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41374a
cmp dword [ebp - 0x14], eax
je 0x41374a
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.AppsUseLightTheme
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
test eax, eax
je 0x413758
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d68f
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], eax
sete al
jmp 0x41374c
Function at 0x41391c
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
sub esp, 0x14
mov eax, dword [0x49d040]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebx, ecx
mov dword [esp + 0xc], eax
mov ebp, edx
push esi
push edi
test ebx, ebx
je 0x413a81
test ebp, ebp
je 0x413a81
test eax, eax
je 0x413a81
xor eax, eax
push eax
push eax
push eax
push eax
push str.GbxDump_1.76
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
jne 0x41397d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, ebx
call fcn.00413ae6
jmp 0x413a81
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [esp + 0x1c]
push 4
push eax
push 2
push edi
mov dword [esp + 0x2c], 0x2710
call esi
push 4
lea eax, [esp + 0x20]
push eax
push 6
push edi
call esi
xor eax, eax
push eax
push eax
push eax
push eax
push ebp
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
jne 0x413a12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
mov esi, eax
call fcn.00413a96
test eax, eax
jne 0x4139df
mov edx, esi
mov ecx, ebx
call fcn.00413ae6
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x413a81
push 1
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetGoOnlineW]
test eax, eax
je 0x4139d3
xor eax, eax
push eax
push eax
push eax
push eax
push ebp
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
jne 0x413a12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x4139cc
and dword [esp + 0x18], 0
xor ebp, ebp
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x30]
sub eax, ebp
dec eax
push eax
push edx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x413a66
mov ecx, dword [esp + 0x18]
add ebp, ecx
mov edx, dword [esp + 0x10]
add edx, ecx
mov dword [esp + 0x10], edx
test ecx, ecx
jne 0x413a21
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [eax + ebp], cl
call esi
push edi
call esi
xor eax, eax
inc eax
jmp 0x413a83
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, ebx
call fcn.00413ae6
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
xor eax, eax
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045d68f
add esp, 0x14
ret