joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4070cc
Capabilities:
Get geographical location
Identify system language via api
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
movzx eax, ax
push esi
movzx eax, ax
push esi
push 3
push eax
mov dword [ebp - 0xc], eax
call edi
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.0040c134
pop ecx
push ebx
push eax
push 3
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push str.SoftwareIntelDisplayigfxcuihkcmd_resources
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407154
push ebx
push dword [ebp - 8]
push 1
push esi
push str.UserLangID
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
pop edi
pop esi
pop ebx
je 0x407165
push dword [ebp - 8]
call fcn.0040c39c
pop ecx
leave
ret

Function at 0x4071f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareIntelDisplayigfxcuiigfxsrvc
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40726a
cmp dword [ebp - 4], edi
je 0x40726a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.GFX_Options
push dword [ebp - 4]
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407261
cmp dword [ebp - 8], 4
jne 0x407261
test byte [ebp - 0xc], 0x30
mov dword [0x421828], edi
je 0x407261
mov dword [0x421828], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x421828]
pop edi
leave
ret
Function at 0x4075d2
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x420450]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.0040614a
mov edi, eax
cmp edi, esi
je 0x40763a
lea ecx, [ebp - 0x70]
call fcn.004060e5
mov eax, edi
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040de9a
add ebp, 0x98
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x407652
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.004075d2
cmp eax, esi
jne 0x407685
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x407642
lea ecx, [ebp - 0x70]
call fcn.004060e5
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.004060e5
mov eax, esi
jmp 0x407620
Function at 0x409223
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x420450]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x41a12a
call fcn.0040e779
mov edi, ecx
mov eax, dword [ebp + 0x414]
mov esi, dword [ebp + 0x410]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
call dword [0x420380]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp], ebx
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x4092dd
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00405d98
add esp, 0xc
test eax, eax
jl 0x4092dd
mov edi, dword [ebp - 0x24]
cmp edi, 0x400
jg 0x4092c5
push edi
call fcn.004074dd
test al, al
pop ecx
je 0x4092c5
mov eax, edi
call fcn.0040f1e0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x4092ce
push edi
lea ecx, [ebp - 0x20]
call fcn.0040795d
push dword [ebp - 0x1c]
push edi
push esi
push eax
call fcn.00405e79
cmp eax, ebx
jne 0x409322
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4092ed
lea ecx, [ebp]
call fcn.00407447
lea ecx, [ebp - 0x20]
call fcn.00407381
mov eax, 0x8007000e
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0040de9a
add ebp, 0x408
leave
ret 0x10
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x1c], edi
jne 0x409341
call fcn.00406001
mov esi, eax
jmp 0x409404
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x40935e
call fcn.00406001
jmp 0x4093f9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x409354
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x18], esi
jae 0x4093a5
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x409391
lea ecx, [ebp]
call fcn.00407447
mov esi, 0x8007000e
lea ecx, [ebp - 0x20]
call fcn.00407381
mov eax, esi
jmp 0x4092fa
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00408521
mov dword [ebp - 4], 1
jmp 0x4093c6
cmp dword [ebp], ebx
jne 0x4093d2
mov esi, 0x8007000e
jmp 0x4093fb
push esi
push dword [ebp - 0x14]
push esi
push dword [ebp]
call fcn.00405f2a
mov eax, dword [ebp]
add esp, 0x10
push dword [ebp + 0x41c]
mov byte [eax + esi], bl
push dword [ebp]
lea ecx, [ebp - 0x2c]
call fcn.004090b4
mov esi, eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x409396
lea ecx, [ebp]
call fcn.00407447
jmp 0x409396
Function at 0x40a91d
Capabilities:
Check os version

Disassembly:
push 0xa0
mov eax, 0x41a30f
call fcn.0040e7af
mov ebx, dword [ebp + 8]
and dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], ebx
xor edi, edi
lea eax, [ebp + 0xc]
inc edi
push eax
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.00403320
push 0x94
lea eax, [ebp - 0xa4]
push 0
push eax
mov dword [ebp - 0xa8], edi
call fcn.0040de20
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 2
jne 0x40a9ad
cmp dword [ebp - 0xa0], 5
jne 0x40a9ad
push str.Global_
mov ecx, ebx
call fcn.00403363
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0xc]
push eax
mov ecx, ebx
call fcn.00403066
push 0
push edi
lea ecx, [ebp + 0xc]
call fcn.00402e7e
mov eax, ebx
call fcn.0040e7f9
ret

Function at 0x40ac33
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [0x42183c], ebx
mov byte [ebp - 1], 1
jne 0x40ac70
push 0x42183c
push ebx
push ebx
push 0x40a9c0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
jne 0x40ac69
mov dword [0x42183c], ebx
mov byte [ebp - 1], bl
jmp 0x40ac70
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop ebx
leave
ret
Function at 0x40bec4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x420450]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040be59
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040de20
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40bf13
cmp dword [ebp - 0x1c], 5
jb 0x40bf2b
jmp 0x40bf27
cmp dword [ebp - 0x10], 1
jne 0x40bf2b
cmp dword [ebp - 0x1c], 4
ja 0x40bf27
jne 0x40bf2b
cmp dword [ebp - 0x18], 0
jbe 0x40bf2b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41bf34
call fcn.00405fb6
test eax, eax
jge 0x40bf4c
mov byte [0x4218ac], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040de9a
add ebp, 0x78
leave
ret

Function at 0x40de9a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420450]
jne 0x40dea4
repz ret
jmp fcn.0040ff0b
Function at 0x415574
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00410f17
xor ebx, ebx
cmp dword [0x422368], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x415649
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4155b4
xor eax, eax
jmp 0x41570d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4155ad
push eax
call fcn.00410eb4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x422368], eax
call esi
push eax
call fcn.00410eb4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42236c], eax
call esi
push eax
call fcn.00410eb4
mov dword [0x422370], eax
lea eax, [ebp - 8]
push eax
call fcn.00412649
test eax, eax
pop ecx
pop ecx
je 0x415617
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040f8df
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x415649
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00410eb4
cmp eax, ebx
pop ecx
mov dword [0x422378], eax
je 0x415649
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410eb4
pop ecx
mov dword [0x422374], eax
mov eax, dword [0x422374]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4156c2
cmp dword [0x422378], esi
je 0x4156c2
push eax
call fcn.00410f20
pop ecx
call eax
cmp eax, ebx
je 0x41568f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x422378]
call fcn.00410f20
pop ecx
call eax
test eax, eax
je 0x41568f
test byte [ebp - 0x18], 1
jne 0x4156c2
lea eax, [ebp - 0xc]
push eax
call fcn.00412680
test eax, eax
pop ecx
je 0x4156aa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040f8df
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4156b9
or dword [ebp + 0x10], 0x200000
jmp 0x4156f3
or dword [ebp + 0x10], 0x40000
jmp 0x4156f3
mov eax, dword [0x42236c]
cmp eax, esi
je 0x4156f3
push eax
call fcn.00410f20
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4156f3
mov eax, dword [0x422370]
cmp eax, esi
je 0x4156f3
push dword [ebp - 4]
push eax
call fcn.00410f20
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x422368]
call fcn.00410f20
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401070
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x40da66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x20]
push ebx
push 2
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x24], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
call sub.KERNEL32.dll_Process32First
cmp eax, ebx
je 0x40118e
mov ebp, dword [esp + 0x154]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x150], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], 1
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::Find
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
cmp eax, ebx
jne 0x401162
lea edx, [esp + 0x1c]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x14c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x14c], 0xffffffff
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
jne 0x4010d2
jmp 0x40118e
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov byte [esp + 0x14c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x14c], 0xffffffff
call sub.MFC42.DLL_CString::CString
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret 4
Function at 0x402fb0
Capabilities:
Check if file exists
Create directory
Get file attributes
Write file on windows

Disassembly:
mov eax, dword [0x413794]
sub esp, 0x408
add eax, 0x1738
lea ecx, [esp + 0x14]
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
push str._sSysLogs
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402fec
test al, 0x10
jne 0x402ff9
lea eax, [esp + 0x1c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x12]
mov eax, dword [esp + 0xe]
mov ecx, dword [esp + 0xc]
and edx, 0xffff
push edx
mov edx, dword [0x413794]
and eax, 0xffff
and ecx, 0xffff
push eax
add edx, 0x1738
push ecx
push edx
lea eax, [esp + 0x2c]
push str._sSysLogs_.4d_.2d_.2d.log
push eax
call edi
add esp, 0x18
lea ecx, [esp + 0x1c]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403120
mov eax, dword [esp + 0x414]
lea edx, [esp + 0x418]
push edx
lea ecx, [esp + 0x220]
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.MSVCRT.dll_vsprintf]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x22]
add esp, 0xc
lea edx, [esp + 0x21c]
and eax, 0xffff
and ecx, 0xffff
push edx
mov edx, dword [esp + 0x18]
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x2c]
push str._.2d:_.2d:_.2d__s_r_n
push eax
call edi
add esp, 0x18
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 8]
push 0
push ecx
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x24]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x413790]
push 0
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
push 0
push 1
add ecx, 0x240
call sub.MFC42.DLL_CListCtrl::InsertItem
pop edi
pop esi
add esp, 0x408
ret
Function at 0x407820
Capabilities:
Create process on windows

Disassembly:
mov edx, ecx
sub esp, 0x158
mov eax, dword [edx + 0x1928]
test eax, eax
jne 0x4078b8
cmp dword [edx + 0x18b8], 2
jb 0x4078b8
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [edx + 0x18c0]
add edx, 0x19c8
shl eax, 8
inc eax
lea ecx, [esp + 0x58]
push eax
push edx
push str.__sJPlayer.exe___d
push ecx
mov dword [esp + 0x24], 0x44
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [esp + 4]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x58]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x4078b8
mov edx, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
pop esi
add esp, 0x158
ret
Function at 0x409100
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x248
push ebx
push ebp
push esi
mov esi, dword [esp + 0x258]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
lea eax, [esp + 0x18]
mov ebx, ecx
push str._s.
push eax
mov dword [esp + 0x1c], ebx
call edi
add esp, 0xc
lea ecx, [esp + 0x118]
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x409156
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x248
ret 4
cmp byte [esp + 0x144], 0x2e
je 0x40919c
lea eax, [esp + 0x144]
lea ecx, [esp + 0x14]
push eax
push esi
push str._s_s
push ecx
call edi
mov al, byte [esp + 0x128]
add esp, 0x10
test al, 0x10
je 0x409191
lea edx, [esp + 0x14]
mov ecx, ebx
push edx
call fcn.00409100
jmp 0x40919c
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [esp + 0x118]
push ecx
push ebp
call ebx
test eax, eax
je 0x409208
cmp byte [esp + 0x144], 0x2e
je 0x4091f9
lea edx, [esp + 0x144]
lea eax, [esp + 0x14]
push edx
push esi
push str._s_s
push eax
call edi
mov al, byte [esp + 0x128]
add esp, 0x10
test al, 0x10
je 0x4091ee
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.00409100
jmp 0x4091f9
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x118]
push eax
push ebp
call ebx
test eax, eax
jne 0x4091b1
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x248
ret 4

Function at 0x409480
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor edi, edi
lea esi, [esp + 0x18]
mov bl, 0x43
xor ebp, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov al, byte [esi + 1]
test al, al
jne 0x4094c9
mov al, byte [esi + 2]
test al, al
je 0x409506
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x409501
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp eax, edi
mov byte [esi + 1], 0
jb 0x409501
ja 0x4094fb
cmp ecx, ebp
jbe 0x409501
mov bl, byte [esi]
mov ebp, ecx
mov edi, eax
add esi, 4
jmp 0x4094bb
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x6c
ret
Function at 0x40c260
Capabilities:
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
add eax, 0x36
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40c284
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x24]
mov edx, dword [ecx]
mov ecx, dword [edx]
mov dword [eax + 0x68], ecx
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
lea edx, [esp + 0xc]
push 0x10
push edx
push eax
mov dword [esi + 0x48], eax
mov dword [esp + 0x1c], 0
mov word [esp + 0x18], 2
mov word [esp + 0x1a], 0
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x40c2cc
mov eax, dword [esi + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
add esp, 0x18
ret
mov ecx, dword [esi + 0x24]
lea eax, [esp + 4]
push 4
push eax
mov edx, dword [ecx + 0x90]
mov ecx, dword [esi + 0x48]
push 0x1002
push 0xffff
shl edx, 0xa
push ecx
mov dword [esp + 0x18], edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esi + 0x48]
lea edx, [esp + 8]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, 1
pop esi
add esp, 0x18
ret

Function at 0x40c320
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x94
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40c3ea
mov eax, dword [esi + 0x24]
push edi
mov word [esp + 8], 2
mov ecx, dword [eax + 0xa0]
test ecx, ecx
je 0x40c359
mov edi, dword [eax + 0xac]
mov ax, word [eax + 0xb0]
push eax
jmp 0x40c361
mov cx, word [eax + 0x6c]
mov edi, dword [eax + 0x68]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
mov ecx, dword [esp + 8]
lea eax, [esi + 0x4c]
mov edx, eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x10]
mov dword [edx + 4], edi
pop edi
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x10]
mov dword [edx + 0xc], ecx
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x40c3cc
mov edx, dword [esi + 0x74]
mov ecx, dword [esi + 0x78]
push 0x10
mov dword [esp + 0xc], edx
push eax
mov eax, dword [esi + 0x48]
push 0
lea edx, [esp + 0x10]
push 0x10
push edx
push eax
mov dword [esp + 0x1c], 0x22
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 7
call dword [sym.imp.WS2_32.dll_sendto]
pop esi
add esp, 0x94
ret
mov edx, dword [esi + 0x48]
push 0x10
push eax
push 0
lea ecx, [esp + 0x20]
push 4
push ecx
push edx
mov dword [esp + 0x2c], 7
call dword [sym.imp.WS2_32.dll_sendto]
pop esi
add esp, 0x94
ret

Function at 0x40c400
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x84
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40c450
mov eax, dword [esi + 0x70]
test eax, eax
jne 0x40c450
mov eax, dword [esp + 0x8c]
push 4
lea ecx, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x10], 0x401
call dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, dword [esi + 0x48]
add esp, 0xc
lea edx, [esi + 0x4c]
lea eax, [esp + 4]
push 0x10
push edx
push 0
push 9
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
pop esi
add esp, 0x84
ret 4
Function at 0x40c6c0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40e2f8
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x40c762
push edi
push edi
push 0x10
push eax
mov dword [esi + 0x44], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x30]
lea eax, [esp + 0xc]
push edi
push eax
add ecx, 0xc0
push 0x10
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov dword [esi + 0x30], edi
call fcn.0040d2da
mov ecx, dword [esi + 0x18]
lea edx, [esp + 8]
inc ecx
mov dword [esp + 0x18], edi
push ecx
push 0x804b
push edx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esp + 0x14]
add esp, 0xc
push eax
call fcn.00402fb0
add esp, 4
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40c996
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x84
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40c9e0
mov eax, dword [esi + 0x70]
test eax, eax
jne 0x40c9e0
mov eax, dword [esp + 0x8c]
push 1
lea ecx, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x10], 0x41c
call dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, dword [esi + 0x48]
add esp, 0xc
lea edx, [esi + 0x4c]
lea eax, [esp + 4]
push 0x10
push edx
push 0
push 9
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
pop esi
add esp, 0x84
ret 4