joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416470
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e2c2
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x476028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
mov dword [esi], 0x46aa9c
mov dword [esi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [esi]
lea edi, [esi + 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [esi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
push edi
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00412110
mov dword [ebp - 4], 2
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + esi - 4], eax
mov ecx, edi
call fcn.004103d0
lea eax, [edi + 4]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x14]
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [edi + 0x4c], 0
mov byte [edi + 0x45], 0
lea ecx, [edi + 8]
mov dword [edi + 0x10], ecx
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x478fd4]
mov dword [edi + 0x50], 0
mov dword [edi + 0x48], eax
mov dword [edi + 0x40], 0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x416597
mov eax, dword [eax]
push ecx
push 0x26
push eax
mov ecx, edi
call fcn.004166f0
test eax, eax
jne 0x4165c5
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi + 0xc]
add ecx, esi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x4165bd
or eax, 4
push 0
push eax
call fcn.0040dd70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x416900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45e3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x476028]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x476028]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x416a54
cmp byte [ebx + 0x45], 0
je 0x416a54
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x416960
xor al, al
jmp 0x416a56
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x4169a0
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4169e1
dec eax
je 0x4169e5
sub eax, 2
je 0x416a3b
xor bl, bl
jmp 0x416a3d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x416a1c
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.00440448
add esp, 0x10
cmp esi, eax
jne 0x4169dd
cmp byte [ebx + 0x45], 0
je 0x416a3b
test esi, esi
jne 0x4169a0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00408fd0
jmp 0x4169a0
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x416a50
push dword [esp + 0x18]
call fcn.0043f2ce
add esp, 4
mov al, bl
jmp 0x416a56
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043f2bf
mov esp, ebp
pop ebp
ret
Function at 0x41c170
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f971
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x476028]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x50], 0
push 0x400
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.004059d0
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
sub eax, ebx
sar eax, 1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x41c1f2
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], eax
mov word [ebp - 0x68], ax
lea esi, [ebp - 0x68]
lea ebx, [eax + 1]
jmp 0x41c230
xor eax, eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
mov dword [ebp - 4], 2
cmp word [ebx], 0
mov eax, ebx
je 0x41c21e
add eax, 2
cmp word [eax], 0
jne 0x41c215
push eax
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0040adb0
lea esi, [ebp - 0x4c]
mov ebx, 2
xor eax, eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jae 0x41c262
mov eax, dword [esi + 0x10]
inc eax
je 0x41c26d
add eax, eax
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0043f460
add esp, 0xc
jmp 0x41c26d
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
test bl, 2
je 0x41c2b9
and ebx, 0xfffffffd
cmp dword [ebp - 0x38], 8
jb 0x41c2a5
push dword [ebp - 0x4c]
call fcn.0043f2ce
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
test bl, 1
je 0x41c2d0
cmp dword [ebp - 0x54], 8
jb 0x41c2d0
push dword [ebp - 0x68]
call fcn.0043f2ce
add esp, 4
nop
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jae 0x41c306
mov eax, dword [ebp - 0x18]
inc eax
je 0x41c312
add eax, eax
push eax
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.0043f460
mov ecx, dword [ebp - 0x14]
add esp, 0xc
jmp 0x41c312
mov eax, dword [ebp - 0x28]
mov dword [edi], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x10], eax
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x34]
mov dword [edi + 0x14], ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
test eax, eax
je 0x41c33f
push eax
call fcn.0043f2ce
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043f2bf
mov esp, ebp
pop ebp
ret
Function at 0x41c880
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ff5b
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x476028]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
mov byte [ebp - 0x259], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41c8e9
lea eax, [ebp - 0x258]
push eax
push ebx
mov dword [ebp - 0x258], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x41c8f0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x41ca19
push str.UIXlyE8i0EkkUmW_UbRlyNwkvv
push 0x400
push 0x47a4d0
call fcn.00442803
add esp, 0xc
call fcn.00426980
cmp byte [0x47a4d0], 0
mov dword [ebp - 0x260], 0xf
mov dword [ebp - 0x264], 0
mov byte [ebp - 0x274], 0
jne 0x41c934
xor eax, eax
jmp 0x41c949
mov eax, 0x47a4d0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c940
sub eax, edx
push eax
push 0x47a4d0
lea ecx, [ebp - 0x274]
call fcn.0040e320
lea edx, [ebp - 0x274]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0041c3f0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x260], 0x10
jb 0x41c98d
push dword [ebp - 0x274]
call fcn.0043f2ce
add esp, 4
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x28]
cmp edi, 8
cmovae eax, esi
lea ecx, [ebp - 0x234]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x41c9c8
test dx, dx
je 0x41c9c4
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x41c9c8
add ecx, 4
add eax, 4
test dx, dx
jne 0x41c9a2
xor eax, eax
jmp 0x41c9cd
sbb eax, eax
or eax, 1
test eax, eax
je 0x41c9f7
cmp edi, 8
jb 0x41c9df
push esi
call fcn.0043f2ce
add esp, 4
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x41c8f0
jmp 0x41ca0c
mov byte [ebp - 0x259], 1
cmp edi, 8
jb 0x41ca0c
push esi
call fcn.0043f2ce
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x259]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043f2bf
mov esp, ebp
pop ebp
ret
Function at 0x423390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45e3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x476028]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x476028]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4234e6
cmp byte [ebx + 0x46], 0
je 0x4234e6
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
jne 0x4233fb
xor al, al
jmp 0x4234e8
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x423473
dec eax
je 0x423477
sub eax, 2
je 0x4234cd
xor bl, bl
jmp 0x4234cf
mov byte [ebx + 0x46], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x4234ae
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.00440448
add esp, 0x10
cmp esi, eax
jne 0x42346f
cmp byte [ebx + 0x46], 0
je 0x4234cd
test esi, esi
jne 0x423432
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00408fd0
jmp 0x423432
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x4234e2
push dword [esp + 0x18]
call fcn.0043f2ce
add esp, 4
mov al, bl
jmp 0x4234e8
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043f2bf
mov esp, ebp
pop ebp
ret

Function at 0x423730
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov dword [0x47904c], eax
mov esi, 1
mov edx, 0x479050
mov ecx, eax
shr ecx, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, esi
mov dword [edx], eax
add edx, 4
inc esi
cmp edx, 0x479a0c
jl 0x423746
mov dword [0x479048], 0x270
pop esi
pop ebp
ret 8
Function at 0x452ce0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x476028]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004452eb
mov dword [ebp - 0x14], eax
cmp dword [0x478f94], edi
jne 0x452dd1
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x452d5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x452eb1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x452eb1
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x452eb1
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x478f94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x478f98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x478f9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x478fa4], eax
test eax, eax
je 0x452dce
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x478fa0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x452df6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x452de9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x452e0b
push 4
pop eax
jmp 0x452eb3
cmp dword [ebp - 0x14], edi
je 0x452e0b
push dword [0x478f94]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x452df0
mov eax, dword [0x478fa0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x452e69
cmp dword [0x478fa4], esi
je 0x452e69
push eax
call ebx
push dword [0x478fa4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x452e69
test eax, eax
je 0x452e69
call ecx
test eax, eax
je 0x452e5e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x452e5e
test byte [ebp - 8], 1
jne 0x452e69
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x452e99
mov eax, dword [0x478f98]
cmp eax, esi
je 0x452e96
push eax
call ebx
test eax, eax
je 0x452e96
call eax
mov edi, eax
test edi, edi
je 0x452e96
mov eax, dword [0x478f9c]
cmp eax, esi
je 0x452e96
push eax
call ebx
test eax, eax
je 0x452e96
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x478f94]
call ebx
test eax, eax
je 0x452eb1
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x452eb3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043f2bf
leave
ret
Function at 0x457927
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00449dfa
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x45795f
xor eax, eax
jmp 0x45798b
cmp esi, dword [ebp - 4]
je 0x457988
cmp dword [ebp + 0xc], 0
je 0x457988
push dword [edi + 0x9c]
call fcn.00457535
push dword [edi + 0x9c]
mov esi, eax
call fcn.0044566a
pop ecx
pop ecx
cmp esi, eax
je 0x45795b
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x404f8c
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x10], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x401680
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x21004
call fcn.00402980
mov eax, dword [0x418010]
xor eax, esp
mov dword [esp + 0x21000], eax
push esi
mov esi, dword [esp + 0x21010]
lea eax, [esp + 0x10004]
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x10004]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push str.HotA_Data
lea eax, [esp + 0x10008]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x10000
lea eax, [esp + 8]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x10008]
push eax
push str._s__s
lea eax, [esp + 0x11010]
push 0x10000
push eax
call fcn.004024f9
lea eax, [esp + 0x11018]
push eax
push str.PATH
call fcn.00402485
push esi
push dword [esp + 0x2102c]
call dword [sym.imp.hota_te.dll_int___cdecl_run_int__char___const_]
mov ecx, dword [esp + 0x21028]
add esp, 0x24
xor eax, eax
pop esi
xor ecx, esp
call fcn.00402515
add esp, 0x21004
ret
Function at 0x40925e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407ccd
mov dword [ebp - 0x14], eax
cmp dword [0x41a0f8], esi
jne 0x409351
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4092de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x409431
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x409431
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409431
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x41a0f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x41a0fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x41a100], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41a108], eax
test eax, eax
je 0x40934e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41a104], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x409376
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x409369
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40938b
push 4
pop eax
jmp 0x409433
cmp dword [ebp - 0x14], esi
je 0x40938b
push dword [0x41a0f8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x409370
mov eax, dword [0x41a104]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4093e9
cmp dword [0x41a108], edi
je 0x4093e9
push eax
call ebx
push dword [0x41a108]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4093e9
test eax, eax
je 0x4093e9
call ecx
test eax, eax
je 0x4093de
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4093de
test byte [ebp - 8], 1
jne 0x4093e9
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x409419
mov eax, dword [0x41a0fc]
cmp eax, edi
je 0x409416
push eax
call ebx
test eax, eax
je 0x409416
call eax
mov esi, eax
test esi, esi
je 0x409416
mov eax, dword [0x41a100]
cmp eax, edi
je 0x409416
push eax
call ebx
test eax, eax
je 0x409416
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x41a0f8]
call ebx
test eax, eax
je 0x409431
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x409433
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402515
mov esp, ebp
pop ebp
ret
Function at 0x100035b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
push esi
push edi
mov edi, 0x10018754
xor ebx, ebx
lea ecx, [esp + 0x20]
call fcn.100012a0
mov ecx, dword [esp + 0x24]
cmp ecx, 0x7fffffff
jg 0x100035fa
mov eax, dword [esp + 0x20]
jl 0x100035e8
cmp eax, 0xfa0a1eff
jae 0x100035fa
add eax, 0x5f5e100
mov dword [esp + 0x18], eax
adc ecx, 0
mov dword [esp + 0x1c], ecx
jmp 0x1000360a
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0x7fffffff
lea ecx, [esp + 0x18]
call fcn.10001970
lea eax, [esp + 0x10]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push dword [edi - 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1000371c
cmp dword [esp + 0x10], 4
jne 0x1000371c
lea eax, [esp + 0x14]
mov eax, dword [eax]
cmp eax, dword [edi]
mov al, byte [0x10019489]
jne 0x10003659
test al, al
je 0x1000371c
cmp byte [0x10019488], 0
je 0x10003708
cmp dword [0x10019534], 0
je 0x10003708
push 0x70
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
mov eax, 0x64
xor ecx, ecx
cmp byte [0x10019489], cl
mov word [esi + 8], ax
setne cl
lea eax, [edi + 0x10]
mov dword [esi], 0xa4141485
push eax
lea eax, [esp + 0x2c]
mov dword [esi + 4], ecx
push 0x1001478c
push eax
call fcn.10001280
lea eax, [esp + 0x34]
mov ecx, esi
mov edx, eax
add esp, 0xc
sub ecx, edx
lea edx, [ecx + 0xa]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x100036c0
push 0
push 0x70
push esi
push dword [0x10019534]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x100036f9
push 0
push 0x70
push esi
push dword [0x1001948c]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10003735
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov al, byte [0x10019489]
add esp, 4
test al, al
je 0x10003715
mov byte [0x10019489], 0
jmp 0x1000371c
mov byte [0x1001948a], 1
add ebx, 0x78
add edi, 0x78
cmp ebx, 0x4b0
jb 0x100035c6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 2
call fcn.1000e8c0
int3

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

Disassembly:
cmp byte [0x1001948b], 0
push esi
je 0x100037e7
cmp byte [0x10019488], 0
je 0x100037e0
cmp dword [0x10019534], 0
je 0x100037e0
push 0x14
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [0x10019480]
add esp, 4
mov esi, eax
push 0
push 0x14
push esi
push dword [0x10019534]
mov dword [esi + 8], ecx
mov ecx, dword [0x10019474]
mov dword [esi], 0xa4161487
mov dword [esi + 4], 0
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 1
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x100037c3
push 0
push 0x14
push esi
push dword [0x1001948c]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x100037e9
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [0x10019480], 2
jne 0x100037e0
mov dword [0x10019480], 0
mov byte [0x1001948b], 0
pop esi
ret
mov ecx, 2
call fcn.1000e8c0
int3