joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44eb70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462fc9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x20]
call fcn.0044b0b0
push 0x47157e
mov eax, dword [ebp - 0x20]
add eax, 0x78
push eax
call fcn.00435fb0
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x44ebcc
push str.255.255.255.255
mov edx, dword [ebp - 0x20]
add edx, 0x78
push edx
call fcn.00435fb0
add esp, 8
movzx eax, al
test eax, eax
je 0x44ebd1
jmp 0x44ed09
mov ecx, dword [ebp - 0x20]
call fcn.0044d0a0
test eax, eax
jne 0x44ebe2
jmp 0x44ed09
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x7c]
push edx
mov eax, dword [ebp - 0x20]
add eax, 0x78
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x44
call fcn.00401510
mov byte [ebp - 0x25], al
movzx ecx, byte [ebp - 0x25]
test ecx, ecx
jne 0x44ec71
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x5c]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x7c]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x78]
push ecx
push 0x471590
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x14
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x44ed09
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x9c], 0
mov ecx, dword [ebp - 0x20]
call fcn.0044ed20
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov dword [ebp - 4], 1
cmp dword [ebp - 0x14], 0
je 0x44eca8
mov dword [ebp - 0x2c], 0x4715a8
jmp 0x44ecaf
mov dword [ebp - 0x2c], str._Error
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x9c]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x5c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
push str.SendRsOneFile____s_type_s_SendCount_d_n
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x14
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x20]
add ecx, 0x44
call fcn.004014d0
mov ecx, dword [ebp - 0x20]
call fcn.0044d930
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x450dc0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463142
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x24], ecx
push str.CManagerThread::StartRun___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x4c], 0
cmp dword [0x47cd40], 0
je 0x450e32
mov ecx, dword [0x47cd40]
call fcn.00402460
mov ecx, dword [0x47cd40]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
je 0x450e2b
push 1
mov ecx, dword [ebp - 0x14]
call fcn.00451be0
mov dword [ebp - 0x28], eax
jmp 0x450e32
mov dword [ebp - 0x28], 0
mov dword [0x47cd40], 0
push 0x150
call sub.MFC71.DLL_operator_new
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0
je 0x450e66
mov ecx, dword [ebp - 0x20]
call fcn.00401d50
mov dword [ebp - 0x2c], eax
jmp 0x450e6d
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov dword [0x47cd40], ecx
cmp dword [0x47cd40], 0
jne 0x450e9e
push 0x471c3c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x450f1e
mov dword [ebp - 0x10], 0
jmp 0x450eb0
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x1e
jge 0x450ed4
mov ecx, dword [0x47cd40]
call fcn.004020d0
test eax, eax
je 0x450ec7
jmp 0x450ed4
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x450ea7
cmp dword [ebp - 0x10], 0x1e
jl 0x450ee9
push 0x471c54
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x450f1e
mov ecx, dword [0x47cd40]
call fcn.00402c60
test eax, eax
jne 0x450f07
push 0x471c68
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x450f1e
mov ecx, 0x47cbd0
call fcn.0043de10
mov ecx, dword [ebp - 0x24]
call fcn.00450ff0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x450f30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
push str.EndRun___Begin__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x44], 0
je 0x450f66
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x44]
push edx
push 0
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x44], 0
mov ecx, dword [ebp - 0xc]
call fcn.00451890
cmp dword [0x47cd40], 0
je 0x450fad
mov ecx, dword [0x47cd40]
call fcn.00402460
mov ecx, dword [0x47cd40]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x450fa6
push 1
mov ecx, dword [ebp - 4]
call fcn.00451be0
mov dword [ebp - 0x10], eax
jmp 0x450fad
mov dword [ebp - 0x10], 0
mov dword [0x47cd40], 0
push str.EndRun___OK__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret
Function at 0x452de0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x47c9f0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xa0], ecx
mov byte [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov word [ebp - 0x1b], ax
mov byte [ebp - 0x19], al
push 0x64
lea ecx, [ebp - 0x98]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
lea edx, [ebp - 0x98]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
jne 0x452e42
xor al, al
jmp 0x452ef3
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 3]
push ecx
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 2]
push eax
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 1]
push edx
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
push ecx
push str._d._d._d._d
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x18
mov dword [ebp - 4], 6
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call sub.iphlpapi.dll_SendARP
test eax, eax
je 0x452eaa
xor al, al
jmp 0x452ef3
lea eax, [ebp - 0x14]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 5]
push edx
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 4]
push ecx
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 3]
push eax
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 2]
push edx
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 1]
push ecx
mov edx, dword [ebp - 8]
movzx eax, byte [edx]
push eax
push str._02X_02X_02X_02X_02X_02X
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x20
mov al, 1
mov ecx, dword [ebp - 0x18]
call fcn.00458cfb
mov esp, ebp
pop ebp
ret 4
Function at 0x454780
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463481
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x14]
call fcn.004588d6
mov dword [ebp - 4], 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
call dword [edx + 0x14]
test eax, eax
jne 0x4547e2
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC71.DLL_CAsyncSocket::CAsyncSocket
mov eax, dword [ebp - 0x20]
jmp 0x4548e0
mov ecx, dword [ebp - 0x34]
call fcn.00454be0
test eax, eax
jne 0x4548bf
push 8
call sub.MFC71.DLL_operator_new
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x454831
lea ecx, [ebp - 0x14]
call sub.MFC71.DLL_CAsyncSocket::Close
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC71.DLL_CAsyncSocket::CAsyncSocket
mov eax, dword [ebp - 0x28]
jmp 0x4548e0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 4], edx
lea ecx, [ebp - 0x14]
call sub.MFC71.DLL_CAsyncSocket::Detach
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov dword [ebp - 0x1c], 0
cmp dword [0x47cd84], 0
je 0x45486b
push 0x10
mov edx, dword [ebp - 0x18]
push edx
push fcn.004548f0
call dword [0x47cd84]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4548bd
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
push 0x454b40
call sub.MFC71.DLL_AfxBeginThread
test eax, eax
jne 0x4548bd
lea ecx, [ebp - 0x14]
call sub.MFC71.DLL_CAsyncSocket::Close
cmp dword [ebp - 0x18], 0
je 0x4548ab
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call sub.MFC71.DLL_operator_delete_1
add esp, 4
mov dword [ebp - 0x18], 0
push str.CTcpListenThread::Accept____AfxBeginThread_ERROR_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4548c7
lea ecx, [ebp - 0x14]
call sub.MFC71.DLL_CAsyncSocket::Close
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC71.DLL_CAsyncSocket::CAsyncSocket
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x454be0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [str.AD_NDClient_TcpListenThreadMutex]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 8], eax
push 0x7d0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x454c30
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x454c63
mov byte [ebp - 1], 0
mov ecx, dword [ebp - 0xc]
add ecx, 0x50
call fcn.00454ee0
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx + 0x6c]
jl 0x454c4b
mov byte [ebp - 1], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x454c70
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [str.AD_NDClient_TcpListenThreadMutex]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 4], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x50
call fcn.00454f30
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 8

Function at 0x454cd0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [str.AD_NDClient_TcpListenThreadMutex]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 4], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
add ecx, 0x50
call fcn.00454f00
test eax, eax
je 0x454d1d
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x50
call fcn.00454f50
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 4
Function at 0x454d40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [str.AD_NDClient_TcpListenThreadMutex]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 4], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0xc]
add ecx, 0x50
call fcn.004550a0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x454daf
push 2
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x50
call fcn.00455100
mov dword [ebp - 8], eax
jmp 0x454d79
mov ecx, dword [ebp - 0xc]
add ecx, 0x50
call fcn.00455000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x4561b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4635b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [0x47c9f0]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x44]
call fcn.00456350
push 0
push 0x47cdac
lea ecx, [ebp - 0x18]
call sub.MFC71.DLL_CSingleLock::CSingleLock
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call sub.MFC71.DLL_CSingleLock::Lock
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, 0x47cd90
call fcn.00456370
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x456277
lea ecx, [ebp - 0x48]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push str.GetUdpOuterClient_sInterIP:_.15s_OutersIP__.15s_Port:_d_n
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x14
lea ecx, [ebp - 0x48]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x18]
call sub.MFC71.DLL_CSingleLock::Unlock
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00437f40
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x20]
call fcn.00458cfb
mov esp, ebp
pop ebp
ret
Function at 0x459042
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x473bf8
call fcn.00459244
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x459082
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x459082
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x45909a
cmp eax, 0x20b
je 0x459087
mov dword [ebp - 0x1c], ebx
jmp 0x4590ae
cmp dword [ecx + 0x84], 0xe
jbe 0x459082
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x4590a8
cmp dword [ecx + 0x74], 0xe
jbe 0x459082
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.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x47ce14], 0xffffffff
or dword [0x47ce18], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x47cdcc]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x47cdc8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x47ce10], eax
call fcn.0045935e
call fcn.00459407
cmp dword [0x47ca20], ebx
jne 0x45910e
push 0x459404
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004593ec
push 0x47c06c
push 0x47c068
call sub.MSVCR71.dll__initterm
push 0x4593a2
call fcn.00458f8c
mov eax, dword [0x47cdc4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x47cdc0]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x459162
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x47c064
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4591e0
cmp al, bl
je 0x45918c
cmp dword [ebp - 0x20], ebx
jne 0x4591e0
mov al, byte [esi]
cmp al, bl
je 0x45919c
cmp al, 0x20
ja 0x45919c
inc esi
mov dword [ebp - 0x24], esi
jmp 0x45918c
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x4591b8
movzx eax, word [ebp - 0x54]
jmp 0x4591bb
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.0045a9c4
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x4591d8
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x459235
cmp al, 0x22
jne 0x4591ef
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x459202
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x45917a
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0045927f
ret
Function at 0x4013d1
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1c4]
sub esp, 0x244
mov eax, dword [0x45e56c]
push esi
push edi
mov edi, ecx
mov dword [ebp + 0x1c0], eax
mov eax, dword [edi + 4]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x54], edi
je 0x4015a0
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push esi
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push eax
mov dword [ebp - 0x58], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4015a0
push ebx
mov dword [ebp - 0x50], esi
push 0x104
lea eax, [ebp + 0xbc]
push eax
push dword [ebp - 0x50]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, esi
mov dword [ebp - 0x5c], eax
jne 0x401591
lea eax, [ebp + 0xbc]
push eax
call fcn.00438464
mov ebx, eax
cmp ebx, esi
pop ecx
jle 0x401591
push 0x1c
call fcn.0043829b
cmp eax, esi
pop ecx
je 0x401490
mov ecx, eax
call fcn.00401000
mov esi, eax
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x10]
push dword [edi + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
test al, al
je 0x401583
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40155d
push eax
call fcn.00438210
test eax, eax
pop ecx
jbe 0x40155d
mov ebx, dword [esi + 0x18]
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push 0x44c484
push ebx
call fcn.004383a8
add esp, 0xc
cmp dword [ebp - 0x4c], 0
jle 0x40155d
jmp 0x4014e8
mov edi, dword [ebp - 0x54]
mov edi, dword [edi + 0x10]
jmp 0x4014fc
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
cmp eax, dword [ebp - 0x4c]
je 0x401502
mov edi, dword [edi + 0x34]
test edi, edi
jne 0x4014ed
jmp 0x401514
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x48]
and dword [ebp - 0x4c], 0
mov byte [esi + 0x14], al
mov byte [esi + 0x15], 1
mov al, byte [ebx]
test al, al
je 0x401534
cmp al, 0x20
je 0x401529
cmp al, 9
je 0x401529
inc ebx
mov al, byte [ebx]
test al, al
jne 0x40151a
cmp byte [ebx], 0
je 0x401534
inc ebx
cmp byte [ebx], 0
jne 0x401538
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0
jle 0x40155a
and dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push 0x44c484
push ebx
call fcn.004383a8
add esp, 0xc
cmp dword [ebp - 0x4c], 0
jg 0x4014e5
mov edi, dword [ebp - 0x54]
mov ebx, dword [edi + 0xc]
test ebx, ebx
jne 0x40156e
mov dword [edi + 0xc], esi
jmp 0x401591
call dword [eax + 4]
mov ebx, eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test eax, eax
mov eax, dword [ebx]
mov ecx, ebx
jne 0x401569
push esi
call dword [eax + 8]
jmp 0x401591
mov ecx, esi
call fcn.00401029
push esi
call fcn.004381c6
pop ecx
inc dword [ebp - 0x50]
xor esi, esi
cmp dword [ebp - 0x5c], esi
je 0x401441
pop ebx
mov ecx, dword [ebp + 0x1c0]
pop edi
pop esi
call fcn.004381fc
add ebp, 0x1c4
leave
ret
Function at 0x403508
Capabilities:
Hash data with crc32

Disassembly:
xor edx, edx
add ecx, 8
push esi
push 8
mov eax, edx
pop esi
test al, 1
je 0x403520
shr eax, 1
xor eax, 0xedb88320
jmp 0x403522
shr eax, 1
dec esi
jne 0x403513
mov dword [ecx], eax
inc edx
add ecx, 4
cmp edx, 0xff
jle 0x40350e
pop esi
ret

Function at 0x4070f1
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x45e56c]
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea ecx, [ebp - 0x238]
push dword [ebp + 0x14]
mov dword [ebp - 4], eax
call fcn.00407075
mov eax, dword [ebp - 0x220]
xor eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x21c]
xor ecx, dword [ebp + 0x18]
and eax, dword [ebp - 0x210]
and ecx, dword [ebp - 0x20c]
mov dword [ebp - 0x238], eax
mov esi, 0x100
push esi
lea eax, [ebp - 0x204]
mov dword [ebp - 0x234], ecx
xor ebx, ebx
push eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 0x230], bl
mov dword [ebp - 0x208], ebx
xor edi, edi
call fcn.004070b8
xor eax, eax
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, esi
jl 0x40716a
mov dword [ebp + 0x18], ebx
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov cl, byte [ebp + edi - 0x204]
lea eax, [ebp + eax - 0x104]
movsx edx, byte [eax]
add ecx, dword [ebp - 0x208]
add ecx, edx
and ecx, 0xff
mov dword [ebp - 0x208], ecx
lea ecx, [ebp + ecx - 0x104]
movsx ebx, byte [ecx]
inc edi
cmp edi, esi
mov byte [ecx], dl
mov byte [eax], bl
jl 0x4071b8
xor edi, edi
inc dword [ebp + 0x18]
cmp dword [ebp + 0x18], esi
jl 0x407179
mov edi, dword [ebp + 0x10]
test edi, edi
jge 0x4071c9
neg edi
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x4071f1
mov ecx, dword [ebp + 8]
sub edi, ecx
mov dword [ebp + 0x10], eax
lea eax, [edi + ecx]
cdq
mov ebx, esi
idiv ebx
mov al, byte [ebp + edx - 0x104]
and al, 0x7f
xor byte [ecx], al
inc ecx
dec dword [ebp + 0x10]
jne 0x4071d8
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004381fc
leave
ret

Function at 0x407961
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push edi
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov eax, edi
pop edi
pop esi
leave
ret