joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f769
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x4c1b94
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
call fcn.0044ddce
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x46f7ae
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x46f7ae
push 0
push edi
inc ebx
call ebp
push dword [esp + 0x1c]
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
test ebx, ebx
je 0x46f7c2
push 5
push edi
call ebp
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp dword [esp + 0x20], 0
je 0x46f7da
push 1
push edi
call fcn.00491854
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x486545
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
push 0xf0000000
push 1
xor edi, edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x486570
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x48665c
push esi
lea eax, [ebp - 8]
push eax
push edi
push edi
push dword [ebp + 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4865a0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
jmp 0x48665b
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4865c7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x48658f
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push ebx
push 4
pop eax
push edi
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 8]
mov dword [ebp - 4], eax
call esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.0043dc74
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push 2
push dword [ebp - 8]
call esi
mov esi, dword [ebp + 0x18]
push 0x4a75aa
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov dword [ebp - 0x10], esi
xor esi, esi
cmp dword [ebp - 4], edi
jbe 0x48663d
movzx eax, byte [esi + ebx]
push eax
push str._02X
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
add dword [ebp - 0x10], 2
add esp, 0xc
inc esi
cmp esi, dword [ebp - 4]
jb 0x48661d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [ebp - 0x18]
call fcn.00437e1a
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret

Function at 0x486bc1
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, dword [esp + 0x10]
mov esi, eax
lea eax, [esi + 2]
push eax
mov ecx, edi
call fcn.0043ddc3
mov eax, dword [edi]
and word [eax], 0
mov edi, dword [edi]
inc esi
push esi
push edi
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop edi
pop esi
ret
Function at 0x489305
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 0x40
push edi
jae 0x489318
xor eax, eax
jmp 0x4894ce
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x5a4d
je 0x48932a
xor eax, eax
jmp 0x4894cd
push esi
mov esi, dword [ebx + 0x3c]
lea eax, [esi + 0xf8]
cmp dword [ebp + 0xc], eax
jl 0x4894ca
add esi, ebx
cmp dword [esi], 0x4550
jne 0x4894ca
mov ax, word [esi + 0x16]
test ah, 0x20
jne 0x4894ca
test al, 2
je 0x4894ca
cmp word [esi + 0x14], 0xe0
jne 0x4894ca
lea edi, [esi + 0xf8]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004860d3
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
test eax, eax
mov dword [ecx], eax
je 0x4894ca
mov ecx, dword [esi + 0x54]
mov dword [ebp + 0xc], ecx
movzx ecx, word [esi + 6]
test ecx, ecx
jle 0x4893b2
lea edx, [edi + 0x14]
mov esi, dword [edx]
test esi, esi
je 0x4893ac
cmp esi, dword [ebp + 0xc]
jae 0x4893ac
mov dword [ebp + 0xc], esi
add edx, 0x28
dec ecx
jne 0x48939e
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ebx + ecx + 0x34]
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push 0x40
push 0x1000
push eax
push ecx
call esi
test eax, eax
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
jne 0x4893ed
mov eax, dword [ebp + 0x1c]
push 0x40
push 0x1000
push dword [eax]
push 0
call esi
test eax, eax
mov dword [edi], eax
je 0x4894ca
push dword [ebp + 0xc]
push ebx
push dword [edi]
call fcn.0041286c
mov eax, dword [edi]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
add eax, 0xf8
mov dword [edx], eax
mov ecx, dword [ecx]
mov ebx, dword [ecx + 0x38]
mov dword [ebp + 0xc], eax
mov eax, dword [ecx + 0x54]
lea eax, [eax + ebx - 1]
xor edx, edx
div ebx
add esp, 0xc
mov esi, eax
imul esi, ebx
add esi, dword [edi]
xor eax, eax
cmp word [ecx + 6], ax
mov dword [ebp - 4], eax
jbe 0x4894c5
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
add eax, ebx
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x489450
mov esi, dword [edi]
add esi, ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x489494
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 8]
push ecx
push eax
push esi
call fcn.0041286c
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, ebx
mov ecx, dword [eax + 0x10]
add esp, 0xc
cmp dword [eax + 8], ecx
jae 0x489494
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
mov dword [ebp - 8], eax
lea eax, [ecx + eax - 1]
xor edx, edx
div dword [ebp - 8]
imul eax, dword [ebp - 8]
jmp 0x4894aa
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x38]
mov eax, dword [eax + 8]
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
imul eax, ecx
add dword [ebp + 0xc], 0x28
add esi, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x489440
xor eax, eax
inc eax
jmp 0x4894cc
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x4961a0
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4b3268
call fcn.00493b94
push 8
call fcn.004996ae
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4c1dd0], esi
jne 0x4961d4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x4c1dcc], esi
mov al, byte [ebp + 0x10]
mov byte [0x4c1dc8], al
cmp dword [ebp + 0xc], edi
jne 0x49621e
cmp dword [0x4c374c], edi
je 0x49620e
mov eax, dword [0x4c3748]
sub eax, 4
mov dword [0x4c3748], eax
cmp eax, dword [0x4c374c]
jb 0x49620e
mov eax, dword [eax]
cmp eax, edi
je 0x4961ef
call eax
jmp 0x4961ef
push 0x4bf0dc
mov eax, 0x4bf0d4
call fcn.0049611e
pop ecx
push 0x4bf0e8
mov eax, 0x4bf0e0
call fcn.0049611e
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x49624f
cmp dword [ebp + 0x10], edi
jne 0x49625d
mov dword [0x4c1dd0], esi
push dword [ebp + 8]
call fcn.004960dc
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x49625c
push 8
call fcn.004995f9
pop ecx
ret
call fcn.00493bcf
ret
Function at 0x49f028
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4c030c]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4c0320]
je 0x49f05f
inc eax
cmp eax, 0x13
jb 0x49f050
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4c0320]
jne 0x49f182
mov eax, dword [0x4c1d88]
cmp eax, 1
je 0x49f15d
cmp eax, edx
jne 0x49f08f
cmp dword [0x4bf90c], 1
je 0x49f15d
cmp ecx, 0xfc
je 0x49f182
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x49f0c5
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00492f50
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00497120
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x49f0f9
mov eax, edi
push eax
call fcn.00497120
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4b95e8
push edi
call fcn.004a19e0
add esp, 0x10
push edi
call fcn.00497120
push dword [esi + 0x4c0324]
mov ebx, eax
call fcn.00497120
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004931e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00492f50
push edi
push ebx
call fcn.00492f60
push 0x4b95c8
push ebx
call fcn.00492f60
push dword [esi + 0x4c0324]
push ebx
call fcn.00492f60
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004a3208
add esp, 0x2c
jmp 0x49f182
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4c0324]
push dword [esi]
call fcn.00497120
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0049fe5e
add ebp, 0x90
leave
ret
Function at 0x49f7b6
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4c2298]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
jne 0x49f7f6
call esi
test eax, eax
je 0x49f7db
mov dword [0x4c2298], 1
jmp 0x49f7fb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x49f7f2
mov dword [0x4c2298], 2
jmp 0x49f804
xor eax, eax
jmp 0x49f852
cmp eax, 1
jne 0x49f7ff
call esi
jmp 0x49f852
cmp eax, 2
jne 0x49f7f2
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x49f84a
lea eax, [esi + esi]
push eax
call fcn.00494374
mov ebp, eax
test ebp, ebp
pop ecx
je 0x49f84a
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x49f84e
push ebp
call fcn.00493f13
pop ecx
xor eax, eax
jmp 0x49f850
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4a3208
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4c2324], ebx
push esi
push edi
jne 0x4a3288
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4a32c3
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4c2324], eax
je 0x4a32c3
push 0x4bb104
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4c2328], eax
call esi
cmp dword [0x4c1d90], 2
mov dword [0x4c232c], eax
jne 0x4a3288
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4c2334], eax
je 0x4a3288
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4c2330], eax
mov eax, dword [0x4c2330]
test eax, eax
je 0x4a32cd
call eax
test eax, eax
je 0x4a32b4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4c2334]
test eax, eax
je 0x4a32b4
test byte [ebp - 8], 1
jne 0x4a32cd
cmp dword [0x4c1d9c], 4
jb 0x4a32c7
or byte [ebp + 0x12], 0x20
jmp 0x4a32ec
xor eax, eax
jmp 0x4a32fc
or byte [ebp + 0x12], 4
jmp 0x4a32ec
mov eax, dword [0x4c2328]
test eax, eax
je 0x4a32ec
call eax
mov ebx, eax
test ebx, ebx
je 0x4a32ec
mov eax, dword [0x4c232c]
test eax, eax
je 0x4a32ec
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4c2324]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a5345
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4a535e
or eax, 0xffffffff
jmp 0x4a53bf
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x4a53bb
push 0x3d
push esi
call fcn.004a5546
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4a53bb
cmp esi, eax
je 0x4a53bb
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4c1db0]
sete cl
cmp eax, dword [0x4c1db4]
mov dword [ebp - 4], ecx
jne 0x4a53a1
mov edi, eax
call fcn.004a52e4
mov dword [0x4c1db0], eax
cmp eax, ebx
jne 0x4a53fa
cmp dword [ebp + 0xc], ebx
je 0x4a53c3
cmp dword [0x4c1db8], ebx
je 0x4a53c3
call fcn.004a475c
test eax, eax
je 0x4a53fa
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x4a53cc
xor eax, eax
jmp 0x4a53be
push 4
call fcn.00494374
cmp eax, ebx
pop ecx
mov dword [0x4c1db0], eax
je 0x4a53bb
mov dword [eax], ebx
cmp dword [0x4c1db8], ebx
jne 0x4a53fa
push 4
call fcn.00494374
cmp eax, ebx
pop ecx
mov dword [0x4c1db8], eax
je 0x4a53bb
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x4c1db0]
sub edi, esi
push esi
call fcn.004a5297
mov edi, eax
test edi, edi
pop ecx
jl 0x4a5461
cmp dword [ebx], 0
je 0x4a5461
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00493f13
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4a5441
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4a54a2
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x4a5438
mov eax, edi
shl eax, 2
push eax
push dword [0x4c1db0]
call fcn.00495f2a
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x4a54a2
jmp 0x4a549d
cmp dword [ebp - 4], 0
jne 0x4a5509
test edi, edi
jge 0x4a5471
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4c1db0]
call fcn.00495f2a
test eax, eax
pop ecx
pop ecx
je 0x4a53bb
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x4c1db0], eax
cmp dword [ebp + 0xc], 0
je 0x4a54f4
push esi
call fcn.00497120
inc eax
inc eax
push eax
call fcn.00494374
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4a54f4
push esi
push edi
call fcn.00492f50
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
test eax, eax
jne 0x4a54ed
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00493f13
pop ecx
cmp dword [ebp - 4], 0
je 0x4a5501
push esi
call fcn.00493f13
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4a53be
push esi
call fcn.00493f13
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x4a53c8

Function at 0x40896d
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
add ebx, edx
call fcn.00408997
add ebx, edx
xor dword [edi], ecx
add edi, 1
inc edx
add ebx, edx
cmp edi, eax
jne fcn.0040896d
add ebx, ebx
add ebx, 1
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x3d7a2aa6
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x247c07d3
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4030e4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x412008], 0x8088405
inc edx
mov dword [ebx + 0x412008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403714
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41201c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4037ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40378c
xor eax, eax
push ebp
push 0x403785
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4037e4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40378c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x41201c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41201c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41304c], 0
je 0x404551
cmp word [0x413328], 0xd7b2
jne 0x404519
cmp dword [0x413330], 0
jbe 0x404519
mov eax, 0x413324
call dword [0x413340]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40457c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x412028], 0
jne 0x40456d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404580
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, 0x415ae4
mov edi, 0x413048
cmp dword [0x412004], 0
je 0x4045a8
call fcn.00404458
call fcn.004044f0
xor eax, eax
mov dword [0x412004], eax
cmp dword [0x415b18], 0
je 0x4045d2
call sub.kernel32.dll_GetCurrentThreadId
cmp eax, dword [0x415b40]
jne 0x4045d2
mov eax, 0x415b14
call 0x5a4041dc
pop esi
mov ebx, esi
xor ebx, 0xffffffff
and esi, 0x26f6b3fb
and ebx, 0xd9094c04
out 0xfb, al
mov bl, 0xf6
and ebx, 0xd9094c04
or esi, ebx
pop ebx
mov edi, ebx
push edi
mov eax, ecx
push eax
mov edx, 0x400093
mov eax, 0x5c08
xor edx, eax
mov ecx, edx
add ecx, 0x54
dec ecx
mov edi, dword [ecx - 0x53]
xor edi, esi
mov dword [ebx], edi
add edx, 4
mov ecx, 0xfffffffc
sub ebx, ecx
mov ecx, 0x40010a
mov eax, 0x6211
xor ecx, eax
xor ecx, edx
test ecx, ecx
jne 0x4045f4
lea esp, [esp + 4]
jmp dword [esp - 4]
Function at 0x405bec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb94
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 0x405db8
call sub.kernel32.dll_GetModuleHandleW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x405c5a
push 0x405dd4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
test ebx, ebx
je 0x405c5a
push 0x105
lea eax, [ebp - 0x46a]
push eax
mov eax, dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x405c5a
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x46a]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_lstrcpynW
jmp 0x405dac
mov eax, dword [ebp - 4]
cmp word [eax], 0x5c
jne 0x405c9e
mov eax, dword [ebp - 4]
cmp word [eax + 2], 0x5c
jne 0x405dac
mov eax, dword [ebp - 4]
add eax, 4
call fcn.00405bc8
mov esi, eax
cmp word [esi], 0
je 0x405dac
lea eax, [esi + 2]
call fcn.00405bc8
mov esi, eax
cmp word [esi], 0
je 0x34405dac
add byte [edi], cl
test byte [eax], dl
add dword [eax], eax
xor al, 0x8c
dec eax
mov word [eax - 0x2a], cs
salc
cmpsd dword [esi], dword es:[edi]
jno 0x405c95
fild word [0x38c87c4c]
in eax, dx
push cs
fild dword [0xff581239]
mov cl, 0xf3
push edx
adc bh, byte [eax]
and byte [edx], dh
adc eax, 0xfe26f2cd
mov dword [edi], 0xf2cd1bad
inc bh
pop ss
lodsd eax, dword [esi]
adc ecx, dword [ebp + 0x394cc6e1]
sbb dword [ecx + 5], esp
dec esp
or byte [ecx - 0x264f11f6], bl
add eax, 0xc7f8774c
cmp dword [ecx], ecx
sbb ch, ch
dec esp
or cl, bl
add eax, 0x53e8913
mov dl, 0xf7
mov esi, 0x5d9284c
sal dword [edx - 2], 0xf2
cmp ebx, eax
add eax, 0x6534394c
pop ds
pop edi
invalid
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x405044], 1
mov dword [0x405040], 1
mov dword [0x40503c], 1
mov dword [0x405034], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x405014], eax
mov eax, dword [0x405050]
test eax, eax
je 0x4010b0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x405064]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40504c]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x40301c], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060

Function at 0x4017b0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]