joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007d530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x90
xor eax, eax
mov dl, byte [edi + eax + 0x2c0f6166]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
and ecx, 0x800000ff
jns 0x1007d55e
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xc
jl 0x1007d541
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x1007fe50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009066d
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x100b900c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x84]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
call fcn.1007fce0
cmp byte [ebp - 0x84], 0
jne 0x1007ffa1
xor edx, edx
lea ecx, [ebp - 0x3f]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x18], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x17], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x16], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x15], al
add edx, 4
cmp edx, 8
jb 0x1007fee5
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x100baab8
call fcn.1007fce0
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.1007fce0
xor edx, edx
lea ecx, [ebp - 0x37]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x28], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x27], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x26], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x25], al
add edx, 4
cmp edx, 0x10
jb 0x1007ff54
push 0x40
lea eax, [ebp - 0x83]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov byte [ebp - 0x84], 1
add esp, 0xc
movq qword [ebp - 0x40], xmm0
push esi
lea ecx, [ebp - 0x84]
call fcn.1007fd90
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x1007ffe3
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1007ffd9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007ffd9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100809df
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100800b9
mov esp, ebp
pop ebp
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43b63b
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43b3c1
pop edx
add eax, 0xa7f21af0
call fcn.0043b678
and eax, eax
add edi, eax
add eax, eax
xor dword [ecx], edx
and eax, eax
mov eax, 0x776f2d48
inc ecx
inc edi
cmp ecx, esi
jne fcn.0043b63b
mov edi, 0xcf3b1793
add eax, edi
sub eax, edi
ret
Function at 0x4013b0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ecx
push esi
push edi
push str.rootwmi
mov dword [esp + 0xc], 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0
mov edi, eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
push 0x43f09c
push 1
push 0
push 0x43f16c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jne 0x401424
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push ebx
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push eax
call edx
mov esi, eax
test esi, esi
jne 0x401423
push eax
push eax
push 3
push 4
push eax
push eax
mov eax, dword [ebx]
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov esi, eax
pop ebx
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 8]
test eax, eax
je 0x40143b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
mov eax, esi
pop esi
pop ecx
ret
Function at 0x4078c0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x38
mov eax, dword [0x445654]
xor eax, esp
mov dword [esp + 0x34], eax
cmp byte [0x44733c], 0
push esi
mov esi, dword [esp + 0x40]
jne 0x4078f0
push 0x10
push 0x44733c
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push eax
push ecx
push str._I64d
lea edx, [esp + 0x10]
push 0x32
push edx
call fcn.004129ec
mov eax, dword [esp + 0x58]
add esp, 0x14
push eax
push esi
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x44733c
push esi
call fcn.004136fe
add esp, 8
test eax, eax
je 0x40793d
mov byte [eax], 0
mov ecx, dword [esp + 0x38]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00411a73
add esp, 0x38
ret

Function at 0x407a10
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x18
mov eax, dword [0x445654]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
push 8
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], 5
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 0xc]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push 2
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call fcn.00412493
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push eax
push ecx
push esi
push 2
push edx
call edi
test eax, eax
je 0x407aea
cmp ebx, dword [esi]
jae 0x407ae7
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea edi, [esi + 8]
mov edi, edi
mov eax, dword [edi - 4]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call ebp
test eax, eax
je 0x407adc
mov eax, dword [edi]
test al, 4
je 0x407adc
test eax, 0xffffffef
jne 0x407ae4
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x407ac0
cmp ebx, dword [esi]
pop ebp
setne bl
push esi
call fcn.004128c5
mov edx, dword [esp + 0x10]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.00411a73
add esp, 0x18
ret
Function at 0x407b20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x445654]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
mov esi, dword [esp + 0x250]
push 0x207
lea eax, [esp + 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407b68
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00411a73
add esp, 0x248
ret
push 0x3c
lea ecx, [esp + 8]
push 0
push ecx
call fcn.00412350
mov edx, dword [esp + 0x260]
add esp, 0xc
lea ecx, [esp + 4]
lea eax, [esp + 0x40]
push ecx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], str.Runas
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x407bdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00411a73
add esp, 0x248
ret
xor esi, esi
cmp byte [esp + 0x258], 0
je 0x407bf6
mov edx, dword [esp + 0x3c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x248]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00411a73
add esp, 0x248
ret

Function at 0x407eb0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x144
mov eax, dword [0x445654]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [0x446e50]
push esi
mov esi, dword [esp + 0x14c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 2
push 0xffffffffffffffff
push 0x100c
push eax
call edi
cmp eax, 0xffffffff
je 0x407f6e
mov edx, dword [0x446e50]
lea ecx, [esp + 8]
push ecx
push 0
push 0x1005
push edx
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
call edi
mov eax, dword [esp + 0x28]
mov edi, eax
add eax, 0x14
push eax
lea eax, [esp + 0x48]
push str.Are_you_sure_you_want_to_terminate___s__
push eax
call fcn.00412953
add esp, 0xc
push 0x34
push str.TCPView
lea ecx, [esp + 0x4c]
push ecx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x407f6e
mov edx, dword [edi + 0x10]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x407f6e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x446e48]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x148]
pop edi
pop esi
xor ecx, esp
call fcn.00411a73
add esp, 0x144
ret
Function at 0x407fa0
Capabilities:
Set tcp connection state

Disassembly:
mov eax, dword [0x446e50]
sub esp, 0x50
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 2
push 0xffffffffffffffff
push 0x100c
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x408042
mov edx, dword [0x446e50]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x1005
push edx
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0
call edi
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x42c]
mov dword [esp + 0xc], ecx
mov edx, dword [eax + 0x440]
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 0x660]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 0x664]
lea eax, [esp + 8]
push eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], 0xc
call sub.IPHLPAPI.DLL_SetTcpEntry
mov ecx, dword [0x446e50]
push 2
push esi
push 0x100c
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x407fc3
mov edx, dword [0x446e48]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
add esp, 0x50
ret
Function at 0x4083b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
lea eax, [esp + 8]
push eax
push str.SoftwareSysinternalsTCPView
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0x446d78
xor ebx, ebx
push ebx
push ebx
push str.Settings
push edx
mov dword [esp + 0x24], 0xa8
mov dword [0x446d78], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x408415
cmp dword [esp + 0xc], 0xa8
je 0x408559
push 0xa8
push ebx
push 0x446d78
call fcn.00412350
movzx ecx, byte [0x446e59]
imul ecx, ecx, 0x64
add esp, 0xc
mov eax, connect
push 0x446dd4
mov dword [0x446d80], eax
mov dword [0x446d7c], eax
mov al, 1
push 0x3c
add ecx, 0x1c2
push 0x11
mov dword [0x446d84], ecx
mov dword [0x446d88], 0x1f4
mov byte [0x446dd0], bl
mov byte [0x446dd1], bl
mov byte [0x446e15], al
mov byte [0x446e14], al
mov dword [0x446e18], ebx
mov byte [0x446e1c], al
mov dword [0x446e10], 0x3e8
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
push ebx
mov dword [0x446de4], 0x190
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0x48
mov esi, eax
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
push esi
mov dword [0x446dd4], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [str.MS_Sans_Serif]
mov eax, dword [0x43e990]
mov ecx, dword [0x43e994]
mov dword [0x446df0], edx
mov dx, word [0x43e998]
mov dword [0x446df4], eax
mov eax, 0x64
mov dword [0x446df8], ecx
mov word [0x446dfc], dx
mov dword [0x446d8c], eax
mov dword [0x446d90], eax
mov dword [0x446d94], eax
mov dword [0x446d98], eax
mov dword [0x446d9c], eax
mov dword [0x446da0], eax
mov dword [0x446da4], eax
mov dword [0x446da8], eax
mov dword [0x446dac], eax
mov dword [0x446db0], eax
mov dword [0x446db4], eax
mov dword [0x446db8], eax
mov dword [0x446dbc], eax
mov dword [0x446dc0], eax
mov dword [0x446dc4], eax
mov dword [0x446dc8], eax
mov dword [0x446dcc], eax
push 0x446dd4
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
pop esi
mov dword [0x446a28], eax
pop ebx
add esp, 8
ret
Function at 0x408570
Capabilities:
Set registry value

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x1c]
push edi
lea eax, [esp + 0xc]
push eax
push esi
mov dword [0x446d78], 0xa8
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
call dword [sym.imp.USER32.dll_IsIconic]
mov edi, dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x4085d1
push esi
call edi
test eax, eax
jne 0x4085d1
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
sub edx, eax
mov dword [0x446d7c], eax
mov eax, dword [esp + 0x18]
sub eax, ecx
mov dword [0x446d80], ecx
mov dword [0x446d84], edx
mov dword [0x446d88], eax
push esi
call edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov byte [0x446dd0], al
xor esi, esi
mov ecx, dword [0x446e50]
push 0
push esi
push 0x101d
push ecx
call edi
mov dword [esi*4 + 0x446d8c], eax
inc esi
cmp esi, 0x11
jl 0x4085e1
lea edx, [esp + 8]
push edx
push str.SoftwareSysinternalsTCPView
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [esp + 8]
push 0xa8
push 0x446d78
push 3
push 0
push str.Settings
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x14
ret
Function at 0x40f230
Capabilities:
Accept command line arguments
Acquire debug privileges
Initialize winsock library

Disassembly:
sub esp, 0x1b4
mov eax, dword [0x445654]
xor eax, esp
mov dword [esp + 0x1b0], eax
push edi
mov edi, dword [esp + 0x1bc]
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push eax
lea ecx, [esp + 8]
push ecx
push str.TCPView
call fcn.004050c0
add esp, 0xc
test eax, eax
je 0x40f2bb
mov eax, dword [esp + 0x1c4]
mov edx, 0x446b40
sub edx, eax
jmp 0x40f290
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40f290
lea edx, [esp + 0x24]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40f2d6
push str.Could_not_initialize_Winsock._n
call fcn.00414192
add esp, 4
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.00411a73
add esp, 0x1b4
ret 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x446d58
call esi
push 0x446e30
call esi
push str.SeDebugPrivilege
call fcn.00407820
add esp, 4
call fcn.0040ae10
mov byte [0x446e59], al
test al, al
jne 0x40f310
call fcn.00407530
mov byte [0x446e59], al
push edi
call fcn.0040f180
add esp, 4
test eax, eax
je 0x40f3b6
mov eax, dword [esp + 0x1cc]
push eax
push edi
call fcn.0040af10
mov esi, eax
add esp, 8
test esi, esi
je 0x40f3b6
push ebx
push ebp
push str.TCPVIEW
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov ebx, eax
call fcn.00407a10
test al, al
je 0x40f35d
push 1
mov ecx, 0x446e68
call fcn.004068e0
mov ebp, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call ebp
test eax, eax
je 0x40f3b4
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
lea ebx, [ebx]
lea edx, [esp + 0x14]
push edx
push ebx
push esi
call edi
test eax, eax
jne 0x40f3a3
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
call ebp
test eax, eax
jne 0x40f380
pop ebp
pop ebx
mov ecx, dword [esp + 0x1b8]
pop esi
pop edi
xor ecx, esp
xor eax, eax
call fcn.00411a73
add esp, 0x1b4
ret 0x10
Function at 0x401c00
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401c4b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401c44
test esi, esi
je 0x401c44
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401c20
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401e30
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401e80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401f58
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401ebe
cmp eax, 4
jne 0x401ee0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401ece
cmp edx, 4
je 0x401ece
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401e30
Function at 0x4058e0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x401646
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x28
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401340
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
lea eax, [ebp - 0x24]
push eax
push 0x4038a0
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0x80000002
call fcn.00403434
mov dword [ebp - 0x34], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], edx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov dword [ebp - 4], 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
add eax, 5
jo 0x405a49
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 1
push 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
mov edx, dword [ebp - 0x24]
push edx
call fcn.0040347c
mov dword [ebp - 0x34], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x2c]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004033ec
mov dword [ebp - 0x34], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], edx
push 0x405a36
jmp 0x405a35
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
int3

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x4d5c38d1
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x49961439
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219