joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4050b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
movzx eax, word [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x4b469c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4050f3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4050ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor eax, eax
pop esi
ret
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
je 0x405110
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x405136
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 0x405130
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebp
pop edi
xor eax, eax
pop esi
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x405154
lea ecx, [esp + 0x18]
call fcn.00404930
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405194
push 0
lea edx, [esp + 0x20]
push edx
push ebp
push ebx
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [esp + 0x18]
call fcn.00404930
pop ebx
pop ebp
pop edi
mov eax, 1
pop esi
ret

Function at 0x405ee0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a86d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x500de4]
mov edx, dword [eax + 0xc]
mov ecx, 0x500de4
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x24], 0
call fcn.0043a320
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x18]
push str._sressrcchsuplive.svr
push edx
mov byte [esp + 0x30], 1
call fcn.00405e90
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0xc]
push esi
push 0
push str.TryNo
push 0x4b46b4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405fab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x405fc0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a86f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
xor edi, edi
cmp esi, edi
je 0x4060d6
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405ff6
sub eax, edx
sar eax, 1
je 0x4060d6
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4060d6
mov eax, dword [0x500de4]
mov edx, dword [eax + 0xc]
mov ecx, 0x500de4
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
push esi
lea eax, [esp + 0x24]
push 0x4b4728
push eax
mov dword [esp + 0x24], edi
call fcn.00405e90
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push str._select_
push edx
call fcn.00405980
mov eax, dword [eax]
add esp, 0x18
push 5
push edi
push eax
push str.explorer
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406090
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
xor ecx, ecx
cmp esi, 0x20
setg cl
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
mov esi, ecx
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4060c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x407090
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a88e7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
mov byte [esi], bl
mov dword [esi + 4], ebx
lea ecx, [esi + 8]
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4070f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a88e7
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov al, byte [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov byte [esi], al
mov edx, dword [ecx]
mov dword [esi + 4], edx
mov eax, dword [esp + 0x28]
xor edi, edi
push eax
lea ecx, [esi + 8]
mov dword [esp + 0x1c], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x10
Function at 0x407490
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x4a89eb
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x228
mov ebp, eax
lea eax, [esp + 0x24]
push ebx
push eax
mov dword [esp + 0x28], 0x22c
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x4075e9
lea ecx, [esp + 0x1c]
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4075e9
mov edx, dword [0x500de4]
mov eax, dword [edx + 0xc]
mov ecx, 0x500de4
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x254], ebx
lea eax, [esp + 0x40]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407540
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x20]
call fcn.00405620
cmp dword [esp + 0x24], ebp
mov edi, dword [esp + 0x18]
je 0x4075af
push str.ksearch.exe
push edi
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4075af
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x25c], eax
je 0x4075af
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4075ab
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
or ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x407538
lea eax, [edi - 0x10]
mov dword [esp + 0x254], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4075e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4075f4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.0048e5b2
add esp, 0x244
ret
Function at 0x407620
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
mov edx, dword [esp + 8]
test edx, edx
je 0x4076f1
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407633
sub eax, esi
sar eax, 1
je 0x4076f0
push edx
lea ecx, [esp + 0x10]
call fcn.00406990
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4076d0
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0xc]
mov eax, dword [eax - 0xc]
add eax, 1
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x407693
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 4], eax
jne 0x4076a1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0xc]
call fcn.00404930
pop esi
xor eax, eax
pop ecx
ret
mov ecx, dword [esp + 0xc]
push ecx
lea edx, [esp + 8]
push edx
call fcn.00401020
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4076f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
xor eax, eax
pop ecx
ret
Function at 0x407700
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4a89eb
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.004027b0
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x40784d
push 0x228
lea eax, [esp + 0x24]
push esi
push eax
mov dword [esp + 0x28], 0x22c
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407842
lea ecx, [esp + 0x1c]
push ecx
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x407842
mov edx, dword [0x500de4]
mov eax, dword [edx + 0xc]
mov ecx, 0x500de4
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ebp, dword [sym.imp.MSVCR80.dll__wcsicmp]
mov dword [esp + 0x254], esi
lea eax, [esp + 0x40]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4077c7
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x20]
call fcn.00405620
cmp dword [esp + 0x24], edi
mov esi, dword [esp + 0x18]
jne 0x4077fe
push str.kxetray.exe
push esi
call ebp
add esp, 8
test eax, eax
je 0x40780f
lea edx, [esp + 0x1c]
push edx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4077c0
jmp 0x407817
mov dword [esp + 0x14], 1
lea eax, [esi - 0x10]
mov dword [esp + 0x254], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40783e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
test ebx, ebx
je 0x40784d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.0048e5b2
add esp, 0x244
ret
Function at 0x407c20
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a8a36
mov eax, dword fs:[0]
push eax
sub esp, 0x37c
mov eax, dword [0x4dffd0]
xor eax, esp
mov dword [esp + 0x378], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x390]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3a0]
mov eax, dword [esp + 0x3a4]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0x30], eax
jne 0x407c7a
xor eax, eax
jmp 0x407df8
lea ecx, [esp + 0x13c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x407c73
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0x15c]
cmp edi, ebp
je 0x407c73
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x2c], esi
je 0x407c73
lea edx, [esp + 0x17]
push edx
lea eax, [edi + 2]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], ebp
mov byte [esp + 0x1f], 0
call fcn.00407970
mov eax, dword [esp + 0x1c]
cmp eax, ebp
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esp + 0x398], ebp
je 0x407cfa
mov ecx, dword [esp + 0x20]
sub ecx, eax
jne 0x407d00
call ebx
mov eax, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x2c]
push edx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407dca
cmp dword [esp + 0x28], edi
jne 0x407dca
xor esi, esi
test edi, edi
jbe 0x407d4b
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x407d3a
mov ecx, dword [esp + 0x20]
sub ecx, eax
cmp esi, ecx
jb 0x407d40
call ebx
mov eax, dword [esp + 0x1c]
xor byte [eax + esi], 0x4e
add esi, 1
cmp esi, edi
jb 0x407d28
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x407d5b
mov ecx, dword [esp + 0x20]
sub ecx, eax
jne 0x407d61
call ebx
mov eax, dword [esp + 0x1c]
push 0xfde9
lea edx, [esp + 0x40]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], edx
call fcn.00404950
mov edx, dword [esp + 0x38]
test edx, edx
mov byte [esp + 0x398], 1
jne 0x407d8c
xor eax, eax
jmp 0x407da0
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407d91
sub eax, esi
sar eax, 1
mov ecx, dword [esp + 0x30]
push eax
push edx
call fcn.00405620
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x407dc1
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov esi, dword [esp + 0x2c]
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x398], 0xffffffff
je 0x407df6
mov edx, dword [esp + 0x24]
sub edx, eax
push edx
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::allocator_char_::deallocate_char___unsigned_int_]
mov eax, ebp
mov ecx, dword [esp + 0x390]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x378]
xor ecx, esp
call fcn.0048e5b2
add esp, 0x388
ret
Function at 0x407ef0
Capabilities:
Check if file exists
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x4a8ab8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
xor edi, edi
test esi, esi
je 0x4080af
mov eax, esi
lea edx, [eax + 2]
jmp 0x407f30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407f30
sub eax, edx
sar eax, 1
je 0x4080af
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4080af
push esi
lea ecx, [esp + 0x2c]
call fcn.004079b0
push str.Preferred_DropEffect
mov dword [esp + 0x24], 0
xor esi, esi
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push 4
push 0x2042
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40806c
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
push edi
jne 0x407fa5
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x40805c
mov ecx, dword [esp + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
neg ecx
sbb ecx, ecx
add ecx, 2
mov dword [eax], ecx
call ebx
mov edx, dword [esp + 0x28]
mov eax, dword [edx - 0xc]
mov ebp, 0x14
add eax, ebp
shl eax, 9
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40805c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x407fed
push esi
call ebx
jmp 0x40805c
mov dword [eax], ebp
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov ecx, 1
mov dword [eax + 0x10], ecx
lea ebp, [eax + 0x14]
mov eax, dword [esp + 0x28]
mov eax, dword [eax - 0xc]
lea ecx, [eax + eax]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004041e0
push eax
push ebp
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call fcn.00404880
push esi
call ebx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40805c
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebx, dword [sym.imp.USER32.dll_SetClipboardData]
push esi
push 0xf
call ebx
mov edx, dword [esp + 0x14]
push edi
push edx
call ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call edi
test esi, esi
je 0x40806c
push esi
call edi
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov esi, 1
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408099
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4080d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a8b01
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x30]
mov ebp, dword [edi - 0xc]
mov byte [esp + 0x14], al
mov word [esp + 0x15], ax
mov byte [esp + 0x17], al
mov eax, dword [0x500de4]
mov edx, dword [eax + 0xc]
mov esi, 1
mov ecx, 0x500de4
mov dword [esp + 0x24], esi
call edx
mov ebx, dword [esp + 0x2c]
add eax, 0x10
mov dword [ebx], eax
mov dword [esp + 0x18], esi
xor esi, esi
test ebp, ebp
jle 0x408213
test esi, esi
mov dword [esp + 0x14], 0
jl 0x40824a
cmp esi, dword [edi - 0xc]
jg 0x40824a
movzx eax, byte [esi + edi]
push eax
call dword [sym.imp.MSVCR80.dll_isalnum]
add esp, 4
test eax, eax
je 0x40817d
cmp esi, dword [edi - 0xc]
jg 0x40824a
mov cl, byte [esi + edi]
mov byte [esp + 0x14], cl
jmp 0x4081e8
cmp esi, dword [edi - 0xc]
jg 0x40824a
movzx edx, byte [esi + edi]
push edx
call dword [sym.imp.MSVCR80.dll_isspace]
add esp, 4
test eax, eax
je 0x40819f
mov byte [esp + 0x14], 0x2b
jmp 0x4081e8
mov byte [esp + 0x14], 0x25
cmp esi, dword [edi - 0xc]
jg 0x40824a
mov al, byte [esi + edi]
shr al, 4
cmp al, 9
jbe 0x4081bb
add al, 0x37
jmp 0x4081bd
add al, 0x30
mov byte [esp + 0x15], al
cmp esi, dword [edi - 0xc]
jg 0x40824a
movzx eax, byte [esi + edi]
and eax, reloc.WS2_32.dll_ntohs
jns 0x4081da
dec eax
or eax, 0xfffffff0
inc eax
cmp al, 9
jbe 0x4081e2
add al, 0x37
jmp 0x4081e4
add al, 0x30
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4081f0
sub eax, edx
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call fcn.00405b80
add esi, 1
cmp esi, ebp
jl 0x408140
lea eax, [edi - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408234
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push 0x80070057
call fcn.004011d0
int3
Function at 0x4086c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a8b49
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0
call fcn.0043a320
push str.krcmddb.dat
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x30], 1
call fcn.00405d30
add esp, 0x14
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x1c], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408740
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x500de4]
mov eax, dword [edx + 0xc]
mov ecx, 0x500de4
call eax
mov esi, dword [esp + 0x24]
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [esp + 8]
push esi
push ecx
mov dword [esp + 0x18], 1
call fcn.00407c20
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x1c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408794
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret

Function at 0x409c60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a8e3b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dffd0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov al, byte [esp + 0x30]
mov ecx, dword [esp + 0x2c]
lea esi, [ebx + 8]
xor edi, edi
mov byte [ebx], al
mov dword [ebx + 4], ecx
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
cmp dword [ebx + 4], edi
mov dword [esp + 0x20], edi
je 0x409d33
mov edx, dword [esp + 0x28]
push esi
push edx
call fcn.00407a60
add esp, 8
test eax, eax
jl 0x409d33
xor ebp, ebp
mov eax, dword [esi + 4]
test eax, eax
je 0x409d33
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x409d33
mov eax, dword [esi + 4]
test eax, eax
je 0x409d0d
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x409d13
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
movzx eax, byte [ebx]
mov ecx, dword [esi + 4]
add ecx, ebp
push eax
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov ecx, dword [ebx + 4]
push eax
call fcn.004099e0
add edi, 1
add ebp, 0x1c
jmp 0x409cc7
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc