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

Disassembly:
sub esp, 0x214
mov edx, dword [esp + 0x218]
lea eax, [esp + 0xc]
push edi
push eax
push edx
mov dword [esp + 0x10], 4
xor edi, edi
call fcn.00405ce0
lea eax, [esp + 4]
lea ecx, [esp + 0x10]
push eax
push 0x20019
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405f45
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push esi
lea eax, [esp + 0x10]
push edx
push eax
push edi
push edi
push str.Speaker_Configuration
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
test esi, esi
pop esi
je 0x405f47
mov eax, edi
pop edi
add esp, 0x214
ret 4

Function at 0x405f60
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x20c
lea eax, [esp + 4]
push esi
push eax
push edx
xor esi, esi
call fcn.00405ce0
lea eax, [esp + 4]
push esi
push eax
push esi
push 0xf003f
push esi
push 0x42166c
lea ecx, [esp + 0x20]
push esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405fda
lea edx, [esp + 0x218]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x14]
push str.Speaker_Configuration
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 4]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 0x20c
ret 8
mov eax, esi
pop esi
add esp, 0x20c
ret 8

Function at 0x406640
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x421670]
sub esp, 0x400
test eax, eax
je 0x4066a1
cmp dword [esp + 0x404], eax
jb 0x4066a1
push edi
lea eax, [esp + 4]
push str.STacSV:
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x418]
lea edi, [esp + 0xc]
push ecx
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x418]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
lea eax, [esp + ecx + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0x14
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x400
ret
Function at 0x4066b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x768
push ebx
push ebp
push esi
mov esi, dword [esp + 0x77c]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x77c]
push ebp
lea eax, [esp + 0xa8]
push 0x1ec
push eax
push ebp
push ebp
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
push 0x20019
push 1
push ebp
push 1
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x10], ebx
je 0x4067fc
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x38]
push ebp
lea edx, [esp + 0x2b4]
push ecx
push edx
push ebx
mov dword [esp + 0x4c], 0x80
mov dword [esp + 0x48], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40673b
mov eax, dword [esp + 0x18]
mov byte [esp + eax + 0x290], 0
mov edi, dword [esp + 0x788]
mov edx, dword [esp + 0x784]
lea ecx, [esp + 0x14]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x28]
push 0
lea edx, [esp + 0x34]
push ecx
push edx
push ebp
push ebx
mov dword [esp + 0x34], 0x400
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov esi, eax
test esi, esi
jne 0x40679f
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push str.EDID
push ecx
mov dword [edi], eax
xor bl, bl
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x4067bc
mov ebx, dword [esp + 0x10]
inc ebp
cmp esi, 0x103
jne 0x406742
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x768
ret
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jbe 0x4067d9
mov edx, dword [esp + 0x784]
add bl, byte [eax + edx]
inc eax
cmp eax, ecx
jb 0x4067c6
test bl, bl
jne 0x4067f1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x768
ret
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x768
ret
Function at 0x406b30
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov eax, 0x12a4
call fcn.00415930
mov edx, dword [esp + 0x12a8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x12b4]
xor ebx, ebx
cmp ecx, ebx
push edi
mov dword [esi + 4], edx
jne 0x406b58
mov ecx, edx
mov eax, dword [esp + 0x12bc]
mov dword [esi + 8], ecx
cmp eax, ebx
jne 0x406b68
mov eax, edx
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x12c0]
lea ecx, [esp + 0x1c]
mov edi, 1
push ecx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], 0xf01ff
mov dword [esi + 0x54], 0x10
mov dword [esi + 0x58], 2
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi], vtable.CNTService.0
mov dword [esp + 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x2c]
xor edx, edx
cmp ecx, 2
sete dl
mov dword [esi + 0x48], edx
mov dword [0x421674], edi
mov dword [0x421678], esi
mov eax, dword [esi + 0x48]
cmp eax, ebx
mov dword [esi + 0x1c], 0x10
mov dword [esi + 0x2c], ebx
je 0x406cc0
mov eax, 0xff
mov ecx, 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
xor eax, eax
lea edi, [esp + 0xb0]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x1b0]
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x2b0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0xb0]
push eax
push ecx
mov dword [esp + 0x1c], 0x1000
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x1b4]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x2bc]
push edx
lea ecx, [esp + 0xc0]
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x406cc0
lea edx, [esp + 0x2b0]
push edx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x406cc0
lea eax, [esp + 0x2b0]
push eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x2b0]
mov dword [esi + 0x44], eax
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CopySid]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x12a4
ret 0x10
Function at 0x407790
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x70
push edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x88]
test eax, eax
mov edx, 1
mov dword [esp + 4], 0x20
mov dword [esp + 8], 5
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
pop edi
jne 0x4077e9
mov edx, 5
mov eax, dword [esp + 0x74]
push edx
lea edx, [esp + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationA]
mov ecx, dword [esp + 0x88]
test eax, eax
mov dword [ecx], eax
jne 0x407832
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x24]
push str.RegisterDeviceNotification_failed:__d_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add esp, 0x70
ret
mov eax, 1
add esp, 0x70
ret
Function at 0x408360
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x11c
push esi
push edi
mov edi, str.SoftwareIDT
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], vtable.CRegistry.0
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x20], 0
shr ecx, 2
mov dword [esp + 0x1c], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, str.STSysTray1.0
test ecx, ecx
je 0x408410
mov edi, 0x41c368
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.STSysTray1.0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 8]
push eax
push 0x20019
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x408463
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push str.RetryInstall
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 8]
push eax
call esi
mov ecx, dword [esp + 0x10]
lea edx, [esp + 8]
push 0
push edx
push 0
push 0xf003f
push 0
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x30]
push 0x42164c
lea eax, [esp + 0x38]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4084b7
lea edx, [esp + 0xc]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x18]
push str.RetryInstall
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop esi
je 0x4084cc
push 3
lea edx, [esp + 0x10]
push 0
push edx
jmp 0x4084d5
push 1
lea eax, [esp + 0x10]
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Locate_DevNodeA]
test eax, eax
je 0x4084e8
xor al, al
add esp, 0x11c
ret
mov ecx, dword [esp + 0xc]
push 0
push ecx
call dword [sym.imp.SETUPAPI.dll_CM_Reenumerate_DevNode]
test eax, eax
sete al
add esp, 0x11c
ret

Function at 0x408820
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x404
or ecx, 0xffffffff
xor eax, eax
push edi
mov edi, edx
repne scasb al, byte es:[edi]
push eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
not ecx
push 0x400
push eax
push ecx
mov ecx, dword [esp + 0x424]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
pop edi
add esp, 0x404
ret
Function at 0x411640
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x416e40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
mov dword [esp + 8], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, eax
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
push 0x41e358
push 7
push ebx
push 0x41e348
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x411758
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push ebx
push ebx
push 0xffffffffffffffff
push str.Config_LangMode
push ebx
push ebx
call ebp
mov esi, eax
dec esi
push esi
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
cmp edi, ebx
je 0x4116e2
push esi
push edi
push 0xffffffffffffffff
push str.Config_LangMode
push ebx
push ebx
call ebp
mov dword [esp + 0x24], edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push 4
push 8
push edx
mov byte [esp + 0x48], 1
call fcn.00408530
push edi
mov esi, eax
mov byte [esp + 0x34], bl
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop edi
cmp esi, ebx
pop ebp
jl 0x411743
mov eax, dword [esp + 0xc]
push eax
push str.defaultlanguagemode___d_n
push 1
call fcn.00406640
mov eax, dword [esp + 0x18]
add esp, 0xc
dec eax
je 0x41173d
dec eax
je 0x411737
mov esi, dword [esp + 0x10]
jmp 0x411767
mov esi, dword [esp + 0x14]
jmp 0x411767
mov esi, dword [esp + 0x18]
jmp 0x411767
push str.error_in_get_defaultlanguagemode_n
push 1
call fcn.00406640
mov esi, dword [esp + 0x18]
add esp, 8
jmp 0x411767
push str.error_when_m_spRegCtrl.CoCreateInstance_n
push 1
call fcn.00406640
add esp, 8
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x411779
mov dword [esp + 8], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 8]
mov dword [esp + 0x28], 0xffffffff
cmp eax, ebx
je 0x411795
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x20]
mov ax, si
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x412150
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor bl, bl
xor esi, esi
mov dword [esp + 0x18], edi
mov eax, dword [edi + 0x218]
mov byte [esp + 0x14], bl
test eax, eax
mov byte [esp + 0x10], bl
je 0x4122d1
mov eax, dword [eax + 0x1d0]
test eax, eax
je 0x4122d1
mov ebp, dword [esp + 0x24]
lea edx, [esp + 0x1c]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x30]
push edx
lea edx, [esp + 0x2c]
push edx
push ebp
push esi
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x4122c1
mov eax, dword [edi + 0x218]
mov edx, dword [eax + 0x21c]
test edx, edx
jle 0x4121ea
lea ecx, [eax + 0x390]
add eax, 0x3a0
mov edi, edx
cmp ebp, dword [eax - 0x180]
jne 0x4121df
cmp byte [ecx], 0
mov ebx, dword [eax]
setne dl
shr ebx, 0x10
mov byte [esp + 0x10], dl
and bl, 1
add eax, 4
inc ecx
dec edi
jne 0x4121c5
mov byte [esp + 0x14], bl
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
and eax, 0xff
and edi, 0xff
push eax
push edi
push ecx
push esi
push edx
push ebp
push str.SetDeviceType:_port0x_04x_curdev_d_newdev_d_flag_d_isslave_d_slavable_d
push 1
call fcn.00406640
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, esi
jne 0x41225b
test bl, bl
je 0x41223a
mov edx, dword [esp + 0x2c]
xor eax, eax
cmp edx, 1
sete al
xor eax, edi
jne 0x41225b
push esi
mov edi, 1
push ebp
push str.Port_0x_04x_already_type_0x_04x_n
push edi
call fcn.00406640
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x218]
mov eax, dword [edx + 0x1d0]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
push edx
push esi
push ebp
push 0
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x4122a4
push esi
mov edi, 1
push ebp
push str.Reconfigured_Port_0x_04x_to_type_0x_04x_n
push edi
call fcn.00406640
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
push esi
push ebp
push str.Failed_to_reconfigure_Port_0x_04x_to_type_0x_04x_n
push 1
call fcn.00406640
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
push ebp
push str.GetPortDeviceType_Port_0x_04x_failed__n
push 1
call fcn.00406640
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x41599c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4184c8
push 0x415ab2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x4216b0], 0xffffffff
or dword [0x4216b4], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x42168c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x421688]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4216b8], eax
call fcn.00415afd
cmp dword [0x4215f0], 0
jne 0x415a1f
push 0x415afa
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00415ae2
push 0x41b010
push 0x41b00c
call sub.MSVCRT.dll__initterm
mov eax, dword [0x421684]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x421680]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x41b008
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00406a60
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x1007a10c
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 0xc], ecx
jle 0x1007a132
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
movsx eax, byte [ecx + edx]
xor eax, 0xffffff80
shl eax, 0x18
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, dword [esp + 0x10]
jl 0x1007a11d
pop esi
ret

Function at 0x1007ed43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1007ed52
pop dword [ebp - 0x44]
mov eax, 0xe3f0f997
sub eax, 0xd3e90c45
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x6d9084e9
sub dword [ebp - 0x54], 0x1f3e3f9e
mov dword [ebp - 0x50], 0x729bcf17
sub dword [ebp - 0x50], 0x406882d2
mov dword [ebp - 0x4c], 0x3a3a3c6d
sub dword [ebp - 0x4c], 0xededf83f
mov dword [ebp - 0x48], 0xbd7a3023
sub dword [ebp - 0x48], 0xbd7a3023
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x59dd2349
sub dword [ebp - 0x54], 0xe56ab9f3
mov dword [ebp - 0x50], 0xc0dcd8d
add dword [ebp - 0x50], 0x355e93e8
mov dword [ebp - 0x4c], 0x25c50fdb
add dword [ebp - 0x4c], 0x3daa5c91
mov dword [ebp - 0x48], 0x6a2bc168
add dword [ebp - 0x48], 0x95d43e98
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x40eab
push 0
call eax
mov ecx, 0x24db5148
sub ecx, 0x24dafb3b
mov ebx, eax
mov edi, 0x8731b302
add edi, 0x88d9dcfe
add edi, dword [ebp - 0x44]
mov edx, 0x9ba64020
add edx, 0xb6d7a7bc
xor dword [ebp - 8], ebx
mov esi, dword [edi]
sub dword [ebp - 0x2c], 0xbb0faf95
sub esi, edx
xor dword [ebp - 0x3c], esi
mov dword [ebx], esi
mov dword [ebp - 0x38], 0xb43b7eaf
add ebx, 0x51e8df1
sub ebx, 0x51e8ded
add edi, 4
loop 0x1007ee6a
add eax, 0x14b07
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xdcbd3350
sub ecx, 0xccbd3350
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x417107]
shl eax, 2
mov dword [0x41710b], eax
push edi
push ecx
xor eax, eax
mov edi, 0x41c0bc
mov ecx, 0x41cadc
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
push 0
call fcn.00409e77
pop ecx
push 0x4170d0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x41710f], eax
push 0
jmp fcn.00414be0
Function at 0x403672
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0xc], eax
xor edi, edi
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 0x14], eax
call fcn.0040f718
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
dec eax
push eax
call fcn.0040f728
pop ecx
mov dword [ebp - 8], eax
xor ebx, ebx
cmp ebx, dword [ebp - 8]
jae 0x403703
push 0x417986
lea eax, [ebp - 0x10]
push eax
call fcn.00409680
add esp, 8
mov edx, ebx
add dl, 0x41
mov byte [ebp - 0x10], dl
lea ecx, [ebp - 0x10]
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
test eax, eax
je 0x4036fd
cmp eax, 2
jne 0x4036f1
cmp dword [ebp + 8], 0
je 0x4036fd
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov ecx, ebx
add cl, 0x41
mov byte [eax + edx], cl
inc dword [ebp - 0xc]
jmp 0x4036fd
test esi, esi
je 0x4036fd
mov eax, ebx
add al, 0x41
mov byte [esi + edi], al
inc edi
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x4036ad
cmp dword [ebp + 8], 0
je 0x403713
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov byte [edx + ecx], 0
test esi, esi
je 0x40371b
mov byte [esi + edi], 0
mov eax, dword [ebp - 4]
dec eax
push eax
call fcn.0040f728
pop ecx
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetErrorMode
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403786
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov ebx, dword [ebp + 8]
push ebx
call sub.USER32.DLL_IsWindow
test eax, eax
jne 0x4037a2
xor eax, eax
jmp 0x4039bf
cmp dword [0x41c474], 0
jne 0x4037ef
push 0
push 0
push 0x31
push ebx
call sub.USER32.DLL_SendMessageA
mov dword [0x41c474], eax
test eax, eax
je 0x4037ef
push 0x41c480
push 0x3c
push dword [0x41c474]
call sub.GDI32.DLL_GetObjectA
test eax, eax
je 0x4037ef
mov dword [0x41c490], 0x190
push 0x41c480
call sub.GDI32.DLL_CreateFontIndirectA
mov dword [0x41c474], eax
cmp dword [0x41c478], 0
jne 0x403847
mov dword [0x41c490], 0x190
mov dword [0x41c480], 0xffffffee
xor edx, edx
mov dword [0x41c484], edx
mov byte [0x41c49b], 0
mov byte [0x41c497], 1
mov byte [0x41c495], 0
push str.Arial
push 0x41c49c
call sub.KERNEL32.DLL_lstrcpyA
push 0x41c480
call sub.GDI32.DLL_CreateFontIndirectA
mov dword [0x41c478], eax
call sub.KERNEL32.DLL_GetVersion
cmp eax, 0x80000000
jb 0x40386b
cmp dword [0x41c4bc], 0
jne 0x40386b
push str.WM_NB32sRESIZE
call sub.USER32.DLL_RegisterWindowMessageA
mov dword [0x41c4bc], eax
push ebx
call fcn.0040377a
cmp dword [0x41c474], 0
je 0x4039b6
push 0
push dword [0x41c474]
push 0x30
push ebx
call sub.USER32.DLL_SendMessageA
push 5
push ebx
call sub.USER32.DLL_GetWindow
mov ebx, eax
test ebx, ebx
je 0x4039ba
test ebx, ebx
je 0x4039a2
push ebx
call sub.USER32.DLL_GetDlgCtrlID
mov esi, eax
cmp esi, 0x1f5
je 0x4038c4
cmp esi, 0x1f6
jne 0x40394b
push 0x21
lea eax, [ebp - 0x24]
push eax
push ebx
call sub.USER32.DLL_GetClassNameA
push 0x4179c8
lea edx, [ebp - 0x24]
push edx
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x40394b
push 0xfffffffffffffff0
push ebx
call sub.USER32.DLL_GetWindowLongA
test al, 3
jne 0x40394b
sub esi, 0x1f5
je 0x4038fb
dec esi
je 0x403924
jmp 0x40394b
call sub.KERNEL32.DLL_GetVersion
cmp al, 4
jae 0x403914
push 0
push ebx
call sub.USER32.DLL_ShowWindow
push ebx
call sub.USER32.DLL_UpdateWindow
jmp 0x40394b
push 5
push ebx
call sub.USER32.DLL_ShowWindow
push ebx
call sub.USER32.DLL_UpdateWindow
jmp 0x40394b
call sub.KERNEL32.DLL_GetVersion
cmp al, 4
jb 0x40393d
push 0
push ebx
call sub.USER32.DLL_ShowWindow
push ebx
call sub.USER32.DLL_UpdateWindow
jmp 0x40394b
push 5
push ebx
call sub.USER32.DLL_ShowWindow
push ebx
call sub.USER32.DLL_UpdateWindow
push ebx
call fcn.0040377a
push 0
push dword [0x41c474]
push 0x30
push ebx
call sub.USER32.DLL_SendMessageA
push ebx
call sub.USER32.DLL_GetDlgCtrlID
cmp eax, 0x1f7
jne 0x4039a2
push 0x21
lea ecx, [ebp - 0x48]
push ecx
push ebx
call sub.USER32.DLL_GetClassNameA
push str.static
lea eax, [ebp - 0x48]
push eax
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x4039a2
push 0
push dword [0x41c478]
push 0x30
push ebx
call sub.USER32.DLL_SendMessageA
push ebx
call sub.USER32.DLL_UpdateWindow
push 2
push ebx
call sub.USER32.DLL_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x4038a0
jmp 0x4039ba
xor eax, eax
jmp 0x4039bf
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret