joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f8c0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x442730]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov byte [ebp - 5], 0
mov dword [ebp - 0xc], 0x170
mov eax, dword [ebp - 0xc]
push eax
call fcn.00425304
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41f8f7
xor al, al
jmp 0x41f9fe
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x41f937
mov eax, dword [ebp - 4]
push eax
call fcn.004253fc
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00425304
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41f937
xor al, al
jmp 0x41f9fe
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
jne 0x41f9ef
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
jmp 0x41f963
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41f9ef
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x34], 6
je 0x41f978
jmp 0x41f95a
mov byte [ebp - 0x28], 0
xor edx, edx
mov dword [ebp - 0x27], edx
mov dword [ebp - 0x23], edx
mov dword [ebp - 0x1f], edx
mov dword [ebp - 0x1b], edx
mov word [ebp - 0x17], dx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x31]
push ecx
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x30]
push eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 0x2f]
push edx
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x2e]
push ecx
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x2d]
push eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 0x2c]
push edx
push str._02X:_02X:_02X:_02X:_02X:_02X
lea eax, [ebp - 0x28]
push eax
call fcn.00427902
add esp, 0x20
push 0x14
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00424e30
add esp, 0xc
mov byte [ebp - 5], 1
jmp 0x41f9ef
mov eax, dword [ebp - 4]
push eax
call fcn.004253fc
add esp, 4
mov al, byte [ebp - 5]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00425195
mov esp, ebp
pop ebp
ret
Function at 0x41fa10
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x442730]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x2a4], eax
cmp dword [ebp - 0x2a4], 0
je 0x41fa48
xor al, al
jmp 0x41fab0
push 0x100
lea ecx, [ebp - 0x2a0]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
mov dword [ebp - 0x2a4], eax
cmp dword [ebp - 0x2a4], 0xffffffff
jne 0x41fa6d
xor al, al
jmp 0x41fab0
lea edx, [ebp - 0x2a0]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
jne 0x41fa8d
xor al, al
jmp 0x41fab0
mov eax, dword [ebp - 0x19c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00427980
add esp, 8
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425195
mov esp, ebp
pop ebp
ret
Function at 0x422790
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x442730]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x20]
call fcn.004200b0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jbe 0x42289d
mov eax, dword [ebp - 0x24]
call fcn.004253d0
mov dword [ebp - 0x118], esp
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x42289d
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x34]
push edx
push str.VarFileInfoTranslation
mov eax, dword [ebp - 0x2c]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x42289d
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0xa4], ecx
mov byte [ebp - 0xa0], 0
push 0x63
push 0
lea edx, [ebp - 0x9f]
push edx
call fcn.00425230
add esp, 0xc
mov eax, dword [ebp - 0xa4]
movzx ecx, word [eax + 2]
push ecx
mov edx, dword [ebp - 0xa4]
movzx eax, word [edx]
push eax
push str.StringFileInfo_04x_04xProductVersion
lea ecx, [ebp - 0xa0]
push ecx
call fcn.00423b90
add esp, 0x10
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xa0]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x42289d
cmp dword [ebp - 0x30], 0
jbe 0x42289d
lea ecx, [ebp - 0x20]
call fcn.00420270
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004201a0
push 0x43a6f4
lea ecx, [ebp - 0xc0]
call fcn.004200e0
push 0x43a6f8
lea ecx, [ebp - 0xdc]
call fcn.004200e0
lea edx, [ebp - 0xc0]
push edx
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.00421690
add esp, 0xc
lea ecx, [ebp - 0xdc]
call fcn.0041f130
lea ecx, [ebp - 0xc0]
call fcn.0041f130
push 0x43a6af
lea ecx, [ebp - 0xf8]
call fcn.004200e0
push 0x43a6fc
lea ecx, [ebp - 0x114]
call fcn.004200e0
lea edx, [ebp - 0xf8]
push edx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.00421690
add esp, 0xc
lea ecx, [ebp - 0x114]
call fcn.0041f130
lea ecx, [ebp - 0xf8]
call fcn.0041f130
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
call fcn.00420120
lea ecx, [ebp - 0x20]
call fcn.0041f130
mov eax, dword [ebp + 8]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425195
mov esp, ebp
pop ebp
ret
Function at 0x42493a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x443c0c], 0
push esi
jne 0x4248ad
call fcn.004247d3
test eax, eax
je 0x4248f0
mov eax, dword [0x443c0c]
cmp eax, 1
jne 0x4248ce
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4248f0
pop esi
ret
push eax
call dword [0x443c14]
test eax, eax
jne 0x424938
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4248f4
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x443c0c]
call dword [0x443c14]
mov edi, eax
test edi, edi
je 0x424919
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x424935
mov edi, esi
add esi, 0xff0
push edi
push dword [0x443c0c]
call dword [0x443c10]
add edi, 0x10
cmp edi, esi
jb 0x424921
mov eax, edi
pop edi
pop esi
ret
jmp 0x42489a

Function at 0x425195
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x442730]
jne 0x42519f
repz ret
jmp fcn.0042a3c7

Function at 0x431802
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004290d6
and dword [ebp - 4], 0
cmp dword [0x44472c], 0
mov ebx, eax
jne 0x4318b3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x431964
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x431964
push eax
call fcn.00429064
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44472c], eax
call esi
push eax
call fcn.00429064
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x444730], eax
call esi
push eax
call fcn.00429064
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x444734], eax
call esi
push eax
call fcn.00429064
pop ecx
mov dword [0x44473c], eax
test eax, eax
je 0x4318b3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00429064
pop ecx
mov dword [0x444738], eax
mov eax, dword [0x444738]
cmp eax, ebx
je 0x43190b
cmp dword [0x44473c], ebx
je 0x43190b
push eax
call fcn.004290df
push dword [0x44473c]
mov esi, eax
call fcn.004290df
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43190b
test edi, edi
je 0x43190b
call esi
test eax, eax
je 0x431902
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x431902
test byte [ebp - 0xc], 1
jne 0x43190b
or dword [ebp + 0x10], 0x200000
jmp 0x431944
mov eax, dword [0x444730]
cmp eax, ebx
je 0x431944
push eax
call fcn.004290df
pop ecx
test eax, eax
je 0x431944
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x431944
mov eax, dword [0x444734]
cmp eax, ebx
je 0x431944
push eax
call fcn.004290df
pop ecx
test eax, eax
je 0x431944
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44472c]
call fcn.004290df
pop ecx
test eax, eax
je 0x431964
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x431966
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4040f0
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2160
call fcn.0040f970
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [str.I_b]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x44912c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.004040e0
mov ecx, dword [0x449130]
mov edx, dword [0x449134]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x404160
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x457614]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x40418c
mov dword [0x457610], 0xedeb2e40
jmp 0x4041a7
cmp eax, 0x3eb
jne 0x4041a7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x4570a0], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x457614], 0x9e6
mov dword [0x45760c], 0xf4ea3dee
jne 0x4041e2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x457614], 0x213
jne 0x404280
push 0
lea eax, [ebp - 0x1960]
push eax
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0x960]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x1160]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x2160]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
lea edx, [ebp - 0x30]
push edx
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea ecx, [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub edi, dword [ebp - 4]
cmp dword [0x457614], 0xc
jne 0x40429e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov eax, dword [ebp - 8]
mov edx, edi
shr edx, 5
lea ecx, [eax + edi]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
xor eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x404160
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4042f0
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Read pipe
Set environment variable
Set thread local storage value
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.0040f970
mov eax, dword [0x457614]
mov ecx, dword [0x4570a4]
shr eax, 3
test eax, eax
jbe 0x404408
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x457614], 0x959
jne 0x4043ee
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x1008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1808]
push eax
push 0
call edi
mov ecx, dword [ebp - 4]
push ecx
call fcn.004040f0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404330
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407c1c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x448500]
jne 0x407c26
repz ret
jmp fcn.0040bc7b

Function at 0x40ac23
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00408f26
and dword [ebp - 4], 0
cmp dword [0x44e2f4], 0
mov ebx, eax
jne 0x40acd4
push 0x401c04
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ad85
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401bf8
push edi
call esi
test eax, eax
je 0x40ad85
push eax
call fcn.00408eb4
mov dword [esp], 0x401be8
push edi
mov dword [0x44e2f4], eax
call esi
push eax
call fcn.00408eb4
mov dword [esp], 0x401bd4
push edi
mov dword [0x44e2f8], eax
call esi
push eax
call fcn.00408eb4
mov dword [esp], 0x401bb8
push edi
mov dword [0x44e2fc], eax
call esi
push eax
call fcn.00408eb4
pop ecx
mov dword [0x44e304], eax
test eax, eax
je 0x40acd4
push 0x401ba0
push edi
call esi
push eax
call fcn.00408eb4
pop ecx
mov dword [0x44e300], eax
mov eax, dword [0x44e300]
cmp eax, ebx
je 0x40ad2c
cmp dword [0x44e304], ebx
je 0x40ad2c
push eax
call fcn.00408f2f
push dword [0x44e304]
mov esi, eax
call fcn.00408f2f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ad2c
test edi, edi
je 0x40ad2c
call esi
test eax, eax
je 0x40ad23
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ad23
test byte [ebp - 0xc], 1
jne 0x40ad2c
or dword [ebp + 0x10], 0x200000
jmp 0x40ad65
mov eax, dword [0x44e2f8]
cmp eax, ebx
je 0x40ad65
push eax
call fcn.00408f2f
pop ecx
test eax, eax
je 0x40ad65
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ad65
mov eax, dword [0x44e2fc]
cmp eax, ebx
je 0x40ad65
push eax
call fcn.00408f2f
pop ecx
test eax, eax
je 0x40ad65
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44e2f4]
call fcn.00408f2f
pop ecx
test eax, eax
je 0x40ad85
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ad87
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b652
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
inc edi
sub edi, 1
call fcn.0043b68a
add edi, ecx
xor dword [esi], edx
inc edi
mov edi, ecx
inc ecx
add esi, 1
add ecx, 0xdbbd50a0
dec ecx
dec edi
cmp esi, ebx
jne fcn.0043b652
sub ecx, edi
mov edi, edi
ret
Function at 0x40ff80
Capabilities:
Access peb ldr_data
Create process on windows
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x412408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov eax, dword [0x41ac08]
mov ecx, 0x41ac08
mov dword [esp + 0x24], 0
call dword [eax + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov edx, dword [0x41ac08]
mov ecx, 0x41ac08
mov byte [esp + 0x24], 1
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x20], esp
mov edi, esp
push esi
mov byte [esp + 0x30], 2
call fcn.00401270
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040fe80
mov edi, dword [esp + 0x18]
add esp, 8
test al, al
je 0x41003d
push edi
push str.__B___Nologo
lea ecx, [esp + 0x1c]
push str._s__s
push ecx
call fcn.00402a90
mov ebp, dword [esp + 0x24]
add esp, 0x10
push 0
push 0
push ebp
push 0x414434
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [edi - 0x10]
mov byte [esp + 0x24], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41005c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41007b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x24], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41009a
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 4

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00431219
Function at 0x4054a1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x559638
cmp edx, dword [eax]
je 0x4054c3
add eax, 8
inc ecx
cmp eax, 0x5596c8
jl 0x4054b4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x559638]
jne 0x4055f1
mov eax, dword [0x559cc8]
cmp eax, 1
je 0x4055cb
test eax, eax
jne 0x4054f4
cmp dword [0x559588], 1
je 0x4055cb
cmp edx, 0xfc
je 0x4055f1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40552b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405a50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405bc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40556e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405bc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407390
push edi
call fcn.00404690
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405a50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405a60
lea eax, [ebp - 0xa0]
push 0x407370
push eax
call fcn.00405a60
push dword [esi + 0x55963c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405a60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004067be
add esp, 0x2c
pop edi
jmp 0x4055f1
lea eax, [ebp + 8]
lea esi, [esi + 0x55963c]
push 0
push eax
push dword [esi]
call fcn.00405bc0
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
mov ecx, 0x54e53b81
nop
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, str.s0a
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x303314d1
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x5f9b10
Capabilities:
Encode data using xor

Disassembly:
xchg edx, eax
adc al, 0xe
jns 0x5f9b79
inc ebp
lahf
adc dword [edi], ecx
inc ecx
scasd eax, dword es:[edi]
inc edi
cmp esi, ebp
salc
scasb al, byte es:[edi]
xor dword [eax - 0x319cd0d], edx
pop esp
cmp eax, 0xe3cf0d9d
js 0x5f9b18
fcmove st(0), st(2)
push ss
or dh, byte [ebx + edi*4 + 0x66]
push cs
iretd
retf 0x4e3e
Function at 0x401a40
Capabilities:
Get disk information via ioctl

Disassembly:
movsx eax, byte [esp + 4]
sub esp, 0x108
lea ecx, [esp + 4]
push esi
push edi
push eax
push str.__c:
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0xc]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401abb
mov ecx, dword [esp + 0x118]
lea eax, [esp + 8]
push 0
push eax
push 0xc
push ecx
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x108
ret 8
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x108
ret 8

Function at 0x401b40
Capabilities:
Get storage device properties

Disassembly:
movsx eax, byte [esp + 4]
sub esp, 0x114
lea ecx, [esp + 0x10]
push esi
push edi
push eax
push str.__c:
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor edi, edi
lea edx, [esp + 0x18]
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401bb0
lea eax, [esp + 0x14]
push edi
push eax
mov eax, dword [esp + 0x12c]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], edi
push ecx
push eax
push 0xc
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x114
ret 8