joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4041d0
Capabilities:
Check if file exists
Create thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x40426f
push 0
push 0
push 0
push 0
add esi, 0x14cc
push 0x40bc58
push 0
push 3
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::InsertItem
push edi
push 1
push 0
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::SetItemText
push 0x40b1e0
push 2
push 0
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::SetItemText
push 0
push 0
push 0
push 0x4039e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [esp + 0x10], 1
jne 0x404245
push 0x40b1d4
jmp 0x40424a
push 0x40b1c8
push 3
push 0
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::SetItemText
push 0x40b1e0
push 2
push 0
mov ecx, esi
mov dword [0x40bc54], 1
call sub.MFC42.DLL_CListCtrl::SetItemText
pop edi
pop esi
ret 8
Function at 0x4054e0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
push ebx
push ebp
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
mov dword [esp + 0x14], 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4055e2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push str.AutoKill
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4055d3
mov ecx, 0x40
lea edi, [esp + 0x11d]
mov byte [esp + 0x11c], bl
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x120]
push 0x104
push edx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [esp + 0x1c]
lea eax, [esp + 0x120]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4055b4
cmp cl, bl
je 0x4055b0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4055b4
add eax, 2
add esi, 2
cmp cl, bl
jne 0x405590
xor eax, eax
jmp 0x4055b9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
pop esi
jne 0x4055d3
mov eax, dword [ebp + 0xa44]
push ebx
push 1
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4055e2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
pop ebx
add esp, 0x214
ret

Function at 0x405700
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
lea eax, [esp + 4]
push edi
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionpoliciesExplorer
mov edi, ecx
push 0x80000002
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40578f
mov esi, dword [esp + 8]
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.NoDriveTypeAutoRun
push esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp + 0xc], 0xff
jne 0x405784
mov ecx, dword [edi + 0xa04]
push 0
push 1
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test esi, esi
je 0x40578f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x10
ret
Function at 0x405ce0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4075f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x2d4]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x14b
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esp + 0x18], ebx
mov ecx, dword [0x40b898]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov dl, byte [esp + 0x18]
lea eax, [esp + 0x14]
add dl, 0x41
push eax
mov dword [esp + 0x34], ebx
mov byte [esp + 0x18], dl
call ebp
cmp eax, 3
jne 0x405dd2
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
push 0x40b88c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00405eb0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.00406950
push 0x40b7cc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x2d4]
push ecx
push ebx
push 0x143
push edx
call edi
lea eax, [esp + 0x14]
push eax
call ebp
cmp eax, 2
jne 0x405e62
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
push str.__USB___
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.00405eb0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], bl
call fcn.00406950
push 0x40b7cc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x2d4]
push ecx
push ebx
push 0x143
push edx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.00406950
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0x1a
mov dword [esp + 0x18], eax
jl 0x405d20
mov eax, dword [esi + 0x2d4]
push ebx
push ebx
push 0x14e
push eax
call edi
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret
Function at 0x405eb0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x40762f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xc], ebx
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x29], eax
mov dword [esp + 0x1d], ecx
mov dword [esp + 0x2d], eax
mov dword [esp + 0x21], ecx
mov word [esp + 0x31], ax
lea edx, [esp + 0x1c]
mov byte [esp + 0x33], al
mov byte [esp + 0x25], cl
push 0xa
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x58]
push edx
lea eax, [esp + 0x3c]
push 0xc
mov edi, 1
push eax
push ecx
mov dword [esp + 0x5c], edi
mov byte [esp + 0x48], bl
mov byte [esp + 0x3c], bl
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp eax, ebx
je 0x405f7b
mov esi, 0x40bc58
lea eax, [esp + 0x28]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x405f5c
cmp cl, bl
je 0x405f58
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x405f5c
add eax, 2
add esi, 2
cmp cl, bl
jne 0x405f38
xor eax, eax
jmp 0x405f61
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x405f7b
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0xc], edi
jmp 0x405f8f
mov esi, dword [esp + 0x44]
push str.null
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], bl
call fcn.00406950
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8
Function at 0x405fc0
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x407650
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov eax, dword [esi + 0x294]
push 0
push 0x14b
push eax
call edi
xor ebx, ebx
mov ecx, dword [0x40b898]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov dl, bl
lea eax, [esp + 0x10]
add dl, 0x41
push eax
mov dword [esp + 0x28], 0
mov byte [esp + 0x14], dl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x4060b1
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
push str.__USB___
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.00405eb0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.00406950
push 0x40b7cc
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x294]
push ecx
push 0
push 0x143
push edx
call edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00406950
inc ebx
cmp ebx, 0x1a
jl 0x405ff7
mov eax, dword [esi + 0x294]
push 0
push 0
push 0x14e
push eax
call edi
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret

Function at 0x4060f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x407697
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5a4
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0xc], ebx
lea eax, [esp + 8]
mov dword [esp + 0x5b4], ebx
push eax
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotFixKB925902
push 0x80000002
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4061eb
mov esi, dword [esp + 8]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push str.Installed
push esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4061e0
cmp dword [esp + 0xc], 1
je 0x4061e0
push ebx
lea ecx, [esp + 0x1c]
call fcn.00406370
lea ecx, [esp + 0x18]
mov byte [esp + 0x5b4], 1
call sub.MFC42.DLL_CDialog::DoModal
lea ecx, [esp + 0x3f0]
mov byte [esp + 0x5b4], 4
call fcn.00402640
lea ecx, [esp + 0x234]
mov byte [esp + 0x5b4], 3
call fcn.00402640
lea ecx, [esp + 0x78]
mov byte [esp + 0x5b4], 2
call fcn.00402640
lea ecx, [esp + 0x18]
mov byte [esp + 0x5b4], bl
call fcn.00406ad6
cmp esi, ebx
je 0x4061eb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x5ac]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x5b0
ret
Function at 0x4065e0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x407775
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x40bc58
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x18]
mov ebp, 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0xb4], ebp
push eax
mov dword [esp + 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x28]
cmp eax, ebp
jne 0x40665a
push str.Windows_9X_Me
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
jmp 0x4066ed
cmp eax, 2
jne 0x40671b
mov eax, dword [esp + 0x1c]
cmp eax, 4
jne 0x406687
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x10]
push ecx
push str.Windows_NT__Build__d_
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, 5
jne 0x4066cb
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x4066a0
mov eax, dword [esp + 0x24]
push eax
push str.Windows_2000__Build__d_
jmp 0x4066e0
cmp eax, ebp
jne 0x4066b5
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push str.Windows_XP__Build__d_
push eax
jmp 0x4066e5
cmp eax, 2
jne 0x406702
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x10]
push ecx
push str.Windows_Server_2003__Build__d_
push edx
jmp 0x4066e5
cmp eax, 6
jne 0x406702
cmp dword [esp + 0x20], ebx
jne 0x406702
mov eax, dword [esp + 0x24]
push eax
push str.Windows_Vista__Build__d_
lea ecx, [esp + 0x18]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov esi, dword [esp + 0xbc]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
jmp 0x40672e
mov esi, dword [esp + 0xbc]
push str.Windows_Vienna
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x14], ebp
jmp 0x406732
mov esi, dword [esp + 0xbc]
push 0x40bad0
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0xb4], bl
call fcn.00406950
mov ecx, dword [esp + 0xac]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret 4

Function at 0x406760
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
pop edi
cmp eax, 1
je 0x4067f3
cmp eax, 2
jne 0x4067f3
mov eax, dword [esp + 4]
cmp eax, 4
je 0x4067f3
cmp eax, 5
jne 0x4067da
mov eax, dword [esp + 8]
test eax, eax
jne 0x4067b8
mov eax, 1
add esp, 0x94
ret
cmp eax, 1
jne 0x4067c9
mov eax, 2
add esp, 0x94
ret
cmp eax, 2
jne 0x4067f3
mov eax, 3
add esp, 0x94
ret
cmp eax, 6
jne 0x4067f3
mov eax, dword [esp + 8]
test eax, eax
jne 0x4067f3
mov eax, 4
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret
Function at 0x401040
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x48b72b
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x4c0c08]
xor eax, esp
mov dword [esp + 0x194], eax
push ebx
push esi
mov eax, dword [0x4c0c08]
xor eax, esp
push eax
lea eax, [esp + 0x1a4]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
call fcn.00417149
push eax
call fcn.004172b0
add esp, 8
lea ecx, [esp + 0xc]
mov dword [0x4c5dd8], ebx
mov byte [0x4c5dcc], bl
mov byte [0x4c0008], 1
call fcn.0040c8d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1ac], ebx
call fcn.0040c8e0
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4010db
push str.Failed_to_load_Winsock_library__n
call fcn.004171eb
add esp, 4
jmp 0x4010e1
mov byte [0x4c5dcd], bl
lea ecx, [esp + 0xc]
mov dword [esp + 0x1ac], 0xffffffff
call fcn.0040ca10
mov eax, esi
mov ecx, dword [esp + 0x1a4]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004176e9
add esp, 0x1a4
ret
Function at 0x4014d0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov edx, 0x4c4980
push edi
mov edi, ecx
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4014e0
mov eax, dword [esp + 0x18]
mov edx, 0x4c4960
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4014f5
mov esi, dword [esp + 0x20]
test esi, esi
jle 0x40151a
mov eax, dword [esp + 0x1c]
push esi
push eax
push 0x4c59c0
call fcn.004177b0
add esp, 0xc
mov dword [0x4c5ddc], esi
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x40169a
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x40169a
cmp byte [0x4c5dcc], 0
mov dword [0x4c5dd4], eax
mov dword [0x4c5dd8], esi
jne 0x40169a
push 0
push eax
push esi
push str._n_n_TAKE__d__d___d__n_n
call fcn.004171eb
add esp, 0x10
mov ecx, edi
call fcn.00401120
lea eax, [esi - 2]
cmp eax, 3
ja case.default.0x401574
jmp dword [eax*4 + 0x4016a4]
mov ecx, dword [str.210.231.114.165]
mov eax, dword [0x48d658]
mov edx, dword [0x48d654]
mov dword [0x4c4990], ecx
mov ecx, dword [0x48d65c]
mov dword [0x4c4998], eax
mov dword [0x4c4994], edx
mov dword [0x4c499c], ecx
mov eax, 0x970
jmp 0x40165c
mov edx, dword [str.210.231.114.165]
mov eax, dword [0x48d654]
mov ecx, dword [0x48d658]
mov dword [0x4c4990], edx
mov edx, dword [0x48d65c]
mov dword [0x4c4994], eax
mov dword [0x4c4998], ecx
mov dword [0x4c499c], edx
mov eax, 0x971
jmp 0x40165c
mov eax, dword [str.210.231.114.165]
mov ecx, dword [0x48d654]
mov edx, dword [0x48d658]
mov dword [0x4c4990], eax
mov eax, dword [0x48d65c]
mov dword [0x4c499c], eax
mov dword [0x4c4994], ecx
mov dword [0x4c4998], edx
mov eax, 0x972
jmp 0x40165c
mov ecx, dword [str.210.231.114.165]
mov eax, dword [0x48d658]
mov edx, dword [0x48d654]
mov dword [0x4c4990], ecx
mov ecx, dword [0x48d65c]
mov dword [0x4c4998], eax
mov dword [0x4c4994], edx
mov dword [0x4c499c], ecx
mov eax, 0x973
jmp 0x40165c
mov byte [0x4c4990], 0
mov eax, 1
mov ecx, 8
mov esi, str.This_is_a_test_of_the_emergency
mov edi, 0x4c49a8
rep movsd dword es:[edi], dword [esi]
push eax
push 0x4c4990
push str.Game_Server__s__port__d_r_n
mov dword [0x4c0004], eax
movsb byte es:[edi], byte [esi]
call fcn.004171eb
push 0
push 0
push 0
push 0x401160
push 0
push 0
call fcn.00417c16
add esp, 0x24
pop edi
xor al, al
pop esi
ret 0x18

Function at 0x4016e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4016f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401734
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401730
lea ebx, [ebx]
cmp esi, eax
jae 0x401734
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401720
cmp esi, eax
jb 0x40173a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x402f10
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x48b8f3
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x4c0c08]
xor eax, esp
mov dword [esp + 0x130], eax
push ebp
push esi
push edi
mov eax, dword [0x4c0c08]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
lea ecx, [esp + 0x154]
mov dword [esp + 0x14c], 0
mov dword [esp + 0x14], 0
call fcn.004026b0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4030a8
mov dword [esp + 0x18], 0x128
call fcn.0040ce5f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402f9f
push 0x80004005
call fcn.004016c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x18]
push ecx
push ebp
mov byte [esp + 0x154], 1
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40307d
lea ebx, [ebx]
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402fd7
sub eax, edx
push eax
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x18]
call fcn.00401bb0
mov esi, dword [esp + 0x10]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x403015
push edi
lea ecx, [esp + 0x14]
call fcn.00401990
mov esi, dword [esp + 0x10]
lea eax, [edi + 1]
push eax
push esi
call fcn.004181a8
push eax
call fcn.00402030
add esp, 0xc
test edi, edi
jl 0x403101
cmp edi, dword [esi - 8]
jg 0x403101
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov eax, dword [esp + 0x154]
test eax, eax
je 0x40306a
cmp dword [esi - 0xc], 0
jl 0x40306a
push eax
push esi
call fcn.00418572
add esp, 8
test eax, eax
je 0x40306a
sub eax, esi
cmp eax, 0xffffffff
je 0x40306a
inc dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402fd0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov byte [esp + 0x14c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4030a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x154]
add eax, 0xfffffff0
mov dword [esp + 0x14c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004176e9
add esp, 0x140
ret
push 0x80070057
call fcn.004016c0
int3
Function at 0x403290
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x118
mov eax, dword [0x4c0c08]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.00401e30
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.AYprc.exe
call fcn.00401e30
call fcn.00402f10
mov ecx, esp
mov dword [esp + 0x14], esp
push str.AYprc.exe
call fcn.00401e30
call fcn.00402f10
add esp, 4
cmp eax, 1
jg 0x403474
mov ecx, dword [0x4c5df4]
push 0x48d72a
push ecx
call fcn.004186b0
add esp, 8
test eax, eax
jne 0x403319
push 5
push str.SEOUL
mov ecx, 0x4c5df4
call fcn.00401bb0
push 0x104
lea edx, [esp + 0x24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401e30
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jl 0x403351
push str.mtsload.exe
push eax
call fcn.00418572
add esp, 8
call fcn.0040ce5f
test eax, eax
jne 0x403364
push 0x80004005
call fcn.004016c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [0x4c5df4]
push 0x85
push ecx
lea edx, [esp + 0x1c]
add eax, 0x10
push str.START__s__d
push edx
mov dword [esp + 0x24], eax
call fcn.00401cf0
mov eax, dword [esp + 0x24]
push eax
call fcn.004171eb
push 0xe8
xor bl, bl
xor ebp, ebp
xor edi, edi
call fcn.0040ca45
add esp, 0x18
test eax, eax
je 0x4033bb
mov ecx, eax
call fcn.00403a40
mov esi, eax
jmp 0x4033bd
xor esi, esi
mov ecx, esi
call fcn.00404000
test al, al
je 0x403420
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
add ebp, eax
cmp ebp, 0x493e0
jle 0x40340d
xor ebp, ebp
test bl, bl
je 0x4033e9
cmp byte [esi + 0xe4], 0
je 0x40340d
lea ecx, [esp + 0x10]
call fcn.00401d10
lea ecx, [esp + 0x10]
call fcn.00401ef0
lea ecx, [esp + 0x10]
mov bl, 1
mov byte [esi + 0xe4], 0
call fcn.00401ab0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
mov edi, eax
call fcn.00404000
test al, al
jne 0x4033c8
test esi, esi
je 0x403434
mov ecx, esi
call fcn.00403dc0
push esi
call fcn.0040ca74
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403454
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403474
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403494
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004176e9
add esp, 0x118
ret 0x10