joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46552f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x465567
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004635e6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004635be
jmp 0x465573
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x466c20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x466c62
call fcn.0046c99f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x466c62
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x466c59
xor eax, eax
jmp 0x466c6a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00466c70
pop edi
pop esi
pop ebx
ret 4

Function at 0x46cecf
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46cefd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46cf1b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046ce35
jmp 0x46cf1b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46cf1b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046ce35
test edi, edi
mov eax, edi
jne 0x46cf05
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40bd50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e593
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x48baac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
push 1
lea ecx, [ebp - 0x14]
call fcn.00401370
push 8
call fcn.0044e4b5
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0
je 0x40bdba
push 0
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.0040bec0
mov dword [ebp - 0x20], eax
jmp 0x40bdc1
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402820
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x14]
call fcn.00402b60
push eax
push 0x40bf00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40be12
lea ecx, [ebp - 0x14]
call fcn.0040be90
jmp 0x40be29
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
push 0x484dc8
lea edx, [ebp - 0x28]
push edx
call fcn.0044fc3b
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040be60
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044e402
mov esp, ebp
pop ebp
ret
Function at 0x421360
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x46fd54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [esp + 8], 0
cmp dword [esp + 0x28], 0
push edi
mov dword [esp + 0x10], ebx
je 0x4213ae
lea ecx, [ebx + 0x40]
mov dword [ebx + 0x14], 0x47dd98
call fcn.004104d0
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 1
mov ecx, ebx
call fcn.00420850
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], 1
mov eax, dword [ebx + 0x14]
mov dword [ebx], vtable.log4cplus::spi::LoggerImpl.1.0
mov eax, dword [eax + 4]
mov dword [eax + ebx + 0x14], vtable.log4cplus::spi::LoggerImpl.0
lea eax, [esp + 0xb]
push eax
call fcn.004037a0
push eax
lea ecx, [esp + 0x30]
call fcn.00407400
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xe]
call fcn.00407400
lea eax, [esp + 0xa]
push eax
lea ecx, [ebx + 0x18]
call fcn.004078e0
push 0
push 0
lea ecx, [ebx + 0x18]
call fcn.00407e70
push 0xffffffffffffffff
push 0
push dword [esp + 0x2c]
lea ecx, [ebx + 0x18]
call fcn.00407ad0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x30], 0xffffffff
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x38], 1
pop edi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc

Function at 0x421850
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x470fab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
push dword [0x490044]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4218b7
push 0x418
call fcn.0044e4b5
add esp, 4
mov dword [esp + 8], eax
mov dword [esp + 0x14], esi
test eax, eax
je 0x4218a0
mov ecx, eax
call fcn.0040ddc0
mov esi, eax
jmp 0x4218a2
xor esi, esi
push esi
mov dword [esp + 0x18], 0xffffffff
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 0x2c]
lea eax, [edi + 0x18]
push dword [esp + 0x2c]
add esi, 0x330
push dword [esp + 0x2c]
mov ecx, esi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push eax
call fcn.004301f0
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x1c]
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x4219d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x46fdd7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
mov dword [esp + 0xc], 0
push edi
lea ecx, [ebp + 0x3c]
mov dword [esp + 0x14], ebp
mov dword [ebp + 4], 0x47cdfc
call fcn.004104d0
mov ebx, dword [esp + 0x40]
push ecx
mov dword [esp + 0x3c], 0
push ebx
mov ecx, ebp
mov dword [esp + 0x18], 1
call fcn.0041bfe0
mov dword [esp + 0x38], 1
mov eax, dword [ebp + 4]
mov dword [ebp], vtable.log4cplus::ConsoleAppender.0
mov eax, dword [eax + 4]
lea esi, [ebp + 0x38]
mov dword [eax + ebp + 4], vtable.log4cplus::ConsoleAppender.1.0
lea edi, [ebp + 0x39]
push 0x47ce30
lea ecx, [esp + 0x1c]
mov byte [esi], 0
mov byte [edi], 0
call fcn.00408180
lea eax, [esp + 0x18]
push eax
push esi
mov ecx, ebx
mov byte [esp + 0x40], 2
call fcn.00431ad0
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 1
call fcn.00407890
push str.ImmediateFlush
lea ecx, [esp + 0x1c]
call fcn.00408180
lea eax, [esp + 0x18]
push eax
push edi
mov ecx, ebx
mov byte [esp + 0x40], 3
call fcn.00431ad0
lea ecx, [esp + 0x18]
call fcn.00407890
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8

Function at 0x422f50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x470199
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
mov dword [esp + 0x28], 0
push edi
lea ecx, [esp + 0xb]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call fcn.004030b0
push eax
mov ecx, esi
call fcn.004078e0
push 0
push 0
mov ecx, esi
call fcn.00407e70
push 0
push 0x8000
mov ecx, esi
call fcn.00407f10
test al, al
je 0x422fde
mov ecx, esi
mov dword [esp + 0x14], 0
call fcn.00407a90
mov edi, eax
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x4000
rep stosd dword es:[edi], eax
push 0x8000
mov ecx, esi
call fcn.00408030
mov dword [esp + 0x2c], 0
mov ecx, esi
mov dword [esp + 0xc], 1
call fcn.00407a90
push eax
mov ecx, esi
call fcn.00407940
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x423030
mov ecx, esi
call fcn.00407940
cmp edi, eax
jae 0x423030
push edi
mov ecx, esi
call fcn.0041b240
mov ecx, dword [esp + 0x24]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
push str.GetCurrentDirectory
lea ecx, [esp + 0x1c]
call fcn.00406f70
push 0x484d38
lea eax, [esp + 0x1c]
push eax
call fcn.0044fc3b
int3
Function at 0x423bf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46fff7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov dword [edi], 0x47cf4c
mov dword [esp + 0x18], edi
mov dword [edi + 0x60], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [esp + 0x28], 0
mov eax, dword [edi]
mov dword [esp + 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ebp, dword [eax + 4]
add ebp, edi
mov ecx, ebp
call fcn.0040d6b0
lea eax, [esp + 0x14]
lea ebx, [edi + 0x10]
push eax
mov ecx, ebp
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x3c], 0
call fcn.0040d690
push eax
mov dword [esp + 0x2c], 2
call fcn.0040fda0
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x28], 1
call fcn.00406e80
mov edx, dword [esi]
push 0x20
mov ecx, esi
call dword [edx + 0x30]
cmp dword [ebp + 0x38], 0
mov word [ebp + 0x40], ax
jne 0x423cc3
push 0
push 4
mov ecx, ebp
call fcn.00409a50
mov dword [esp + 0x28], 3
mov eax, dword [edi]
mov dword [esp + 0x1c], ebx
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.0040f730
mov byte [esp + 0x28], 4
lea ecx, [ebx + 0x40]
mov dword [ebx], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
call fcn.004030b0
mov ecx, dword [esp + 0x30]
call fcn.00407940
mov ecx, dword [esp + 0x30]
mov ebp, eax
call fcn.0040a2b0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 2
test ebp, ebp
je 0x423d30
push ebp
push eax
mov ecx, ebx
call fcn.0040f8c0
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x434600
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x471114
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
lea ecx, [edi + 0x40]
mov dword [esp + 0x14], edi
mov dword [edi + 0x14], 0x47dd98
call fcn.004104d0
mov dword [esp + 0x3c], 0
push 0x47dd8c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 1
call fcn.00408180
mov ecx, edi
mov dword [esp + 0x3c], 1
call fcn.00420850
mov dword [esp + 0x3c], 3
mov eax, dword [edi + 0x14]
mov dword [edi], vtable.log4cplus::spi::LoggerImpl.1.0
mov eax, dword [eax + 4]
lea ecx, [esp + 0x18]
mov dword [eax + edi + 0x14], vtable.log4cplus::spi::LoggerImpl.0
lea eax, [esp + 0xf]
push eax
call fcn.004037a0
push eax
lea ecx, [esp + 0x11]
call fcn.00407400
lea eax, [esp + 0xd]
push eax
lea ecx, [esp + 0x12]
call fcn.00407400
lea eax, [esp + 0xe]
push eax
lea ecx, [edi + 0x18]
call fcn.004078e0
push 0
push 0
lea ecx, [edi + 0x18]
call fcn.00407e70
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [edi + 0x18]
call fcn.00407ad0
mov eax, dword [esp + 0x44]
mov dword [edi + 0x30], 0xffffffff
mov dword [edi + 0x34], 0
mov byte [edi + 0x38], 1
mov dword [edi + 0x3c], eax
lea ecx, [esp + 0x18]
call fcn.00407890
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0x34]
mov dword [edi], vtable.log4cplus::spi::RootLogger.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 0x14], vtable.log4cplus::spi::RootLogger.1.0
mov dword [edi + 0x30], 0x2710
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x38
ret 0xc

Function at 0x434810
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46f128
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.0041bd90
mov edi, eax
mov ecx, edi
call fcn.0041d3e0
mov ecx, dword [esi + 8]
push dword [ebp + 8]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
lea eax, [esp + 8]
push eax
mov ecx, edi
call fcn.004091f0
lea esi, [edi + 0x98]
push esi
mov ecx, eax
mov dword [esp + 0x30], 0
call fcn.0041b2a0
lea ecx, [esp + 8]
call fcn.00407890
mov ecx, esi
call fcn.0040a2b0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x24]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x437d90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x471695
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
mov ebp, ecx
push esi
mov dword [esp + 0xc], 0
push edi
lea ecx, [ebp + 0x64]
mov dword [esp + 0x14], ebp
mov dword [ebp + 4], 0x47eda4
call fcn.004104d0
mov ebx, dword [esp + 0x70]
push ecx
mov dword [esp + 0x6c], 0
push ebx
mov ecx, ebp
mov dword [esp + 0x18], 1
call fcn.0041bfe0
mov dword [esp + 0x68], 1
mov eax, dword [ebp + 4]
mov dword [ebp], vtable.log4cplus::Log4jUdpAppender.0
mov eax, dword [eax + 4]
mov dword [eax + ebp + 4], vtable.log4cplus::Log4jUdpAppender.1.0
mov dword [ebp + 0x3c], 0xffffffff
mov dword [ebp + 0x40], 1
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x38], vtable.log4cplus::helpers::Socket.0
lea ecx, [ebp + 0x48]
mov byte [esp + 0x68], 2
call fcn.00407560
lea edi, [ebp + 0x60]
mov byte [esp + 0x68], 3
push str.localhost
lea ecx, [esp + 0x34]
mov dword [edi], 0x1388
call fcn.00408180
push str.host
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 4
call fcn.00408180
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x50]
push eax
mov ecx, ebx
mov byte [esp + 0x74], 5
call fcn.004315e0
push eax
lea ecx, [ebp + 0x48]
call fcn.004026f0
lea ecx, [esp + 0x48]
call fcn.00407890
lea ecx, [esp + 0x18]
call fcn.00407890
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 3
call fcn.00407890
push str.port
lea ecx, [esp + 0x34]
call fcn.00408180
lea eax, [esp + 0x30]
push eax
push edi
mov ecx, ebx
mov byte [esp + 0x70], 6
call fcn.00431ce0
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 3
call fcn.00407890
mov ecx, ebp
call fcn.00437f50
mov eax, ebp
pop edi
mov ecx, dword [esp + 0x5c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 8
Function at 0x4011f0
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
mov eax, dword [0x455f8f8]
test eax, eax
je 0x4012a0
mov eax, dword [0x456021c]
push 0x455fa18
push eax
mov dword [0x455fa18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401296
mov ecx, dword [0x455fa20]
mov eax, dword [0x455f8f8]
cmp ecx, eax
je 0x40124e
mov edx, dword [0x456021c]
push 0x455fa18
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x401296
mov eax, dword [0x455fa20]
mov ecx, dword [0x455f8f8]
cmp eax, ecx
jne 0x40122a
push str.explorer.exe
push 0x455fa3c
call fcn.00492020
add esp, 8
test eax, eax
jne 0x401296
mov ecx, dword [0x455f8f8]
push ecx
push eax
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [0x4560220], eax
je 0x401296
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [0x4560220]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x455f8f8], 0
mov eax, dword [0x4d7e3c]
mov ecx, dword [0x4d7e38]
mov eax, dword [eax + 4]
cmp eax, ecx
je 0x4012c5
mov ecx, 1
mov dword [eax + 0x24], ecx
mov eax, dword [eax + 4]
cmp eax, dword [0x4d7e38]
jne 0x4012b7
ret
Function at 0x4119a0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0x45600f4]
push esi
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4119d2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.004107f0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
ret

Function at 0x4150d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x40
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x44]
add eax, 3
push ebp
cdq
push esi
xor ebp, ebp
push edi
and edx, 3
push ebp
add eax, edx
push 0x80
push 2
mov esi, eax
push ebp
push ebp
push 0x40000000
sar esi, 2
push ecx
mov dword [esp + 0x2c], esi
mov byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41511d
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x40
ret
push ebx
mov ebx, dword [esp + 0x68]
mov edx, dword [esp + 0x74]
imul esi, ebx
lea eax, [edx*4]
lea edx, [esp + 0x54]
mov dword [esp + 0x68], eax
push ebp
lea ecx, [eax + esi + 0x36]
add eax, 0x36
mov dword [esp + 0x26], eax
push edx
lea eax, [esp + 0x20]
push 0xe
mov word [esp + 0x2a], bp
mov word [esp + 0x2c], bp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push edi
mov word [esp + 0x2c], 0x4d42
mov dword [esp + 0x2e], ecx
call ebp
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x2c], ecx
xor ecx, ecx
lea edx, [esi + eax*4 + 0x28]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], ecx
push ecx
push eax
lea ecx, [esp + 0x30]
push 0x28
push ecx
push edi
mov dword [esp + 0x3c], 0x28
mov dword [esp + 0x44], ebx
mov word [esp + 0x48], 1
mov word [esp + 0x4a], 8
mov dword [esp + 0x50], edx
call ebp
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0x54]
push 0
push edx
push eax
push ecx
push edi
call ebp
test ebx, ebx
jle 0x415234
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x6c]
sub eax, esi
lea esi, [edx + ebx - 1]
mov dword [esp + 0x74], eax
imul esi, ecx
mov eax, ecx
mov ecx, dword [esp + 0x58]
neg eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x5c]
add esi, ecx
add esi, eax
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x54]
push 0
push eax
push ecx
push esi
push edi
call ebp
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x54]
push 0
push edx
lea ecx, [esp + 0x1b]
push eax
push ecx
push edi
call ebp
mov ecx, dword [esp + 0x68]
add esi, ecx
dec ebx
jne 0x415207
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x40
ret
Function at 0x415250
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x3c]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x415280
pop edi
xor eax, eax
pop esi
add esp, 0x38
ret
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov eax, ecx
push ebx
imul eax, edx
mov dword [esp + 0x20], ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x4c]
lea ebx, [eax + eax*2 + 0x36]
mov dword [esp + 0x28], edx
push edi
push ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x1a], ebx
push 0xe
lea ebx, [eax + eax*2]
push edx
push esi
mov word [esp + 0x24], 0x4d42
mov word [esp + 0x2a], di
mov word [esp + 0x2c], di
mov dword [esp + 0x2e], 0x36
mov dword [esp + 0x34], 0x28
mov word [esp + 0x40], 1
mov word [esp + 0x42], 0x18
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
call ebp
lea eax, [esp + 0x4c]
push edi
push eax
lea ecx, [esp + 0x28]
push 0x28
push ecx
push esi
call ebp
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x4c]
push edi
push edx
push ebx
push eax
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x38
ret
Function at 0x41ca40
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
lea ecx, [esp]
mov dword [0x564c5c], 1
push ebp
push edi
push eax
xor ebp, ebp
push str.map_d.ani
push ecx
mov dword [0x564c58], ebp
call fcn.004923a7
add esp, 0xc
mov eax, 0x4a470c
mov ecx, 0xfffffffe
mov dword [eax - 4], ecx
mov dword [eax], 0xffffffff
add eax, 0x1c
cmp eax, 0x4a630c
jl 0x41ca78
push ebp
push ebp
push 3
push ebp
push 1
lea edx, [esp + 0x1c]
push closesocket
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41cab1
pop edi
or eax, eax
pop ebp
add esp, 0x20
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x30]
push ebp
push eax
push 0x14
push 0x4a46f4
push edi
call ebx
test eax, eax
je 0x41caf7
push esi
mov esi, 0x4a46f4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x41caf6
lea ecx, [esp + 0x34]
mov dword [esi + 0x14], 0
push 0
add esi, 0x1c
push ecx
push 0x14
push esi
push edi
inc ebp
call ebx
test eax, eax
jne 0x41cad2
pop esi
push edi
mov dword [0x564c58], ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x20
ret
Function at 0x41e560
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x461c00c]
test eax, eax
je 0x41e5a4
mov eax, dword [0x4c437c]
push eax
call sub.WSOCK32.dll_closesocket
mov ecx, dword [0x461c00c]
push 0
push ecx
mov dword [0x4c437c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [0x461c00c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x461c00c], 0
mov eax, dword [0x461b41c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x41e5c8
push 0x8000
push 0
push eax
call esi
mov dword [0x461b41c], 0
mov eax, dword [0x461b418]
test eax, eax
je 0x41e5e5
push 0x8000
push 0
push eax
call esi
mov dword [0x461b418], 0
call fcn.00414540
call fcn.004814f0
call fcn.00487920
call fcn.00488c20
call fcn.0041f8e0
mov eax, dword [0x54b188]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
call fcn.00491950
call fcn.004012d0
call fcn.0045ec30
mov ecx, dword [0x45600fc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.0047c4f0
call fcn.004497b0
push 1
push 0
push 0
call fcn.00465bd0
add esp, 0xc
call fcn.0048d3a0
pop esi
ret