joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401060
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
push edi
xor edi, edi
cmp dword [0x845368], 0x594
mov dword [ebp - 8], eax
jne 0x40108c
push edi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
mov ecx, dword [0x4260c8]
mov edx, dword [0x4260cc]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], edx
call fcn.00401050
mov eax, dword [0x4260d0]
mov ecx, dword [str.5O_nV]
add dword [ebp - 0x18], 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], ecx
mov ebx, 0x20
jmp 0x4010d0
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0x845368]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401156
push edi
lea edx, [ebp - 0x470]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push edi
lea eax, [ebp - 0x34]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0x30
lea ecx, [ebp - 0x6c]
push edi
push ecx
mov dword [ebp - 0x70], edi
call fcn.00403250
mov edx, dword [ebp + 8]
add esp, 0xc
push edx
lea eax, [ebp - 0x70]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetCommConfig]
xor ecx, ecx
xor edx, edx
lea eax, [ebp - 0x3c]
push eax
mov word [ebp - 0x1c], cx
mov word [ebp - 0x1a], dx
mov ecx, dword [ebp - 0x1c]
push ecx
push edi
push str.sulabuwaxase
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov eax, dword [ebp - 4]
mov ecx, dword [0x845368]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x401170
mov dword [0x844904], 0xedeb2e40
jmp 0x401190
cmp ecx, 0x3eb
jne 0x401190
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x8442b4], edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov edx, esi
shr edx, cl
add eax, esi
mov dword [ebp - 0x14], eax
mov dword [0x844900], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov ecx, dword [ebp - 8]
shl ecx, 4
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 4]
add eax, dword [ebp - 0x30]
xor eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ecx
sub esi, ecx
call fcn.00401040
sub ebx, 1
jne 0x4010d0
cmp dword [0x845368], 0xa6d
mov ebx, dword [ebp + 8]
mov dword [ebx], esi
jne 0x401233
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [ebx + 4], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407734
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040442a
and dword [ebp - 4], 0
cmp dword [0x426cf8], 0
mov ebx, eax
jne 0x4077e5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407896
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407896
push eax
call fcn.004043b8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x426cf8], eax
call esi
push eax
call fcn.004043b8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x426cfc], eax
call esi
push eax
call fcn.004043b8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x426d00], eax
call esi
push eax
call fcn.004043b8
pop ecx
mov dword [0x426d08], eax
test eax, eax
je 0x4077e5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004043b8
pop ecx
mov dword [0x426d04], eax
mov eax, dword [0x426d04]
cmp eax, ebx
je 0x40783d
cmp dword [0x426d08], ebx
je 0x40783d
push eax
call fcn.00404433
push dword [0x426d08]
mov esi, eax
call fcn.00404433
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40783d
test edi, edi
je 0x40783d
call esi
test eax, eax
je 0x407834
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407834
test byte [ebp - 0xc], 1
jne 0x40783d
or dword [ebp + 0x10], 0x200000
jmp 0x407876
mov eax, dword [0x426cfc]
cmp eax, ebx
je 0x407876
push eax
call fcn.00404433
pop ecx
test eax, eax
je 0x407876
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407876
mov eax, dword [0x426d00]
cmp eax, ebx
je 0x407876
push eax
call fcn.00404433
pop ecx
test eax, eax
je 0x407876
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x426cf8]
call fcn.00404433
pop ecx
test eax, eax
je 0x407896
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407898
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433000
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x52fa5cd4
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x4d475e09
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401060
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
push edi
xor edi, edi
cmp dword [0x84a904], 0x594
mov dword [ebp - 8], eax
jne 0x40108c
push edi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
mov ecx, dword [0x42c0c8]
mov edx, dword [0x42c0cc]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], edx
call fcn.00401050
mov eax, dword [0x42c0d0]
mov ecx, dword [0x42c0d4]
add dword [ebp - 0x18], 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], ecx
mov ebx, 0x20
jmp 0x4010d0
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0x84a904]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401156
push edi
lea edx, [ebp - 0x470]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push edi
lea eax, [ebp - 0x34]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0x30
lea ecx, [ebp - 0x6c]
push edi
push ecx
mov dword [ebp - 0x70], edi
call fcn.00403230
mov edx, dword [ebp + 8]
add esp, 0xc
push edx
lea eax, [ebp - 0x70]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetCommConfig]
xor ecx, ecx
xor edx, edx
lea eax, [ebp - 0x3c]
push eax
mov word [ebp - 0x1c], cx
mov word [ebp - 0x1a], dx
mov ecx, dword [ebp - 0x1c]
push ecx
push edi
push str.yasuzelavopoj
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov eax, dword [ebp - 4]
mov ecx, dword [0x84a904]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x401170
mov dword [0x84a900], 0xedeb2e40
jmp 0x401190
cmp ecx, 0x3eb
jne 0x401190
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x84a2b4], edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov edx, esi
shr edx, cl
add eax, esi
mov dword [ebp - 0x14], eax
mov dword [0x84a8fc], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov ecx, dword [ebp - 8]
shl ecx, 4
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 4]
add eax, dword [ebp - 0x30]
xor eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ecx
sub esi, ecx
call fcn.00401040
sub ebx, 1
jne 0x4010d0
cmp dword [0x84a904], 0xa6d
mov ebx, dword [ebp + 8]
mov dword [ebx], esi
jne 0x401233
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [ebx + 4], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401650
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x84a904], 0x400
push esi
push edi
jne 0x401695
xor ecx, ecx
xor eax, eax
lea edx, [ebp - 4]
push edx
mov word [ebp - 4], ax
mov word [ebp - 2], cx
mov eax, dword [ebp - 4]
push eax
push ecx
push str.kayed
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
lea eax, [ebp - 0x24]
call fcn.00401760
lea esi, [ebp - 0x24]
call fcn.00401780
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [ebp - 4]
xor esi, esi
call edi
cmp esi, 0x2af2a3
jle 0x4016b3
cmp ebx, 0x78abdb45
jne 0x4016bc
inc esi
cmp esi, 0x1c5d
jl 0x4016a1
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea ebx, [ebx]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x4016ed
inc esi
cmp esi, 0x4f6a4
jl 0x4016d0
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x40170c
cmp ebx, 0x785074d5
jne 0x401715
inc esi
cmp esi, 0x11915
jl 0x4016f8
mov ecx, dword [0x42c30c]
mov dword [0x84a904], ecx
call fcn.00401390
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov edi, 0x3078f
pop ebx
cmp dword [0x84a904], 0x51f
jne 0x401744
push 0
push 0
call esi
sub edi, 1
jne 0x401732
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4036a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b248]
jne 0x4036aa
repz ret
jmp fcn.004079f1
Function at 0x407714
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040440a
and dword [ebp - 4], 0
cmp dword [0x42ccf8], 0
mov ebx, eax
jne 0x4077c5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407876
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407876
push eax
call fcn.00404398
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42ccf8], eax
call esi
push eax
call fcn.00404398
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42ccfc], eax
call esi
push eax
call fcn.00404398
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42cd00], eax
call esi
push eax
call fcn.00404398
pop ecx
mov dword [0x42cd08], eax
test eax, eax
je 0x4077c5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404398
pop ecx
mov dword [0x42cd04], eax
mov eax, dword [0x42cd04]
cmp eax, ebx
je 0x40781d
cmp dword [0x42cd08], ebx
je 0x40781d
push eax
call fcn.00404413
push dword [0x42cd08]
mov esi, eax
call fcn.00404413
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40781d
test edi, edi
je 0x40781d
call esi
test eax, eax
je 0x407814
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407814
test byte [ebp - 0xc], 1
jne 0x40781d
or dword [ebp + 0x10], 0x200000
jmp 0x407856
mov eax, dword [0x42ccfc]
cmp eax, ebx
je 0x407856
push eax
call fcn.00404413
pop ecx
test eax, eax
je 0x407856
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407856
mov eax, dword [0x42cd00]
cmp eax, ebx
je 0x407856
push eax
call fcn.00404413
pop ecx
test eax, eax
je 0x407856
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42ccf8]
call fcn.00404413
pop ecx
test eax, eax
je 0x407876
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407878
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401c70
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x42c3a0]
test esi, esi
jle 0x401d80
mov edi, dword [0x42c3a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401ca4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401d25
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x401c90
mov dword [esp], eax
mov ebx, eax
call fcn.00402560
test eax, eax
mov edi, eax
je 0x401da7
mov eax, dword [0x42c3a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402660
add eax, dword [edi + 0xc]
mov edx, dword [0x42c3a4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401d87
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401d1e
sub eax, 4
and eax, 0xfffffffb
jne 0x401d30
add dword [0x42c3a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x42c3a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401d1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00425090
lea esi, [esi]
xor esi, esi
jmp 0x401cae
mov eax, dword [0x42c3a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00425090
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00425090
mov esi, esi
lea edi, [edi]

Function at 0x4021e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x42c3b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x42c3b0]
sub esp, 4
test ebx, ebx
je 0x402235
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40222e
test esi, esi
je 0x40222e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402210
mov dword [esp], 0x42c3b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4040fc
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x47c
mov esi, eax
mov ebp, edx
mov dword [esp + 0x28], ecx
cmp dword [eax + 0x14], 1
sbb eax, eax
add eax, 2
mov dword [esp + 8], 0x18
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
sub esp, 0xc
test eax, eax
jne 0x40413d
xor ebx, ebx
jmp 0x404299
mov edi, eax
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edx
push edx
mov ebx, eax
mov dword [esp + 4], edi
mov eax, dword [esi + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ecx
push ecx
mov dword [esp + 0x2c], eax
lea esi, [esp + 0x60]
mov dword [esp + 4], esi
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
push edi
rdtsc
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], str._sDLL_X.manifest
lea esi, [esp + 0x268]
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_swprintf]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x100
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40000000
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov edi, eax
cmp eax, 0xffffffff
mov ecx, dword [esp + 0x2c]
jne 0x4041f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404297
mov dword [esp + 0x10], 0
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
xor ebx, ebx
test eax, eax
jne 0x404226
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
test ebx, ebx
jne 0x404299
lea edi, [esp + 0x44]
mov ecx, 7
mov eax, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x40], 0x20
mov dword [esp + 0x48], esi
lea eax, [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push ecx
mov dword [ebp], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
mov eax, dword [ebp]
cmp eax, 0xffffffff
je 0x404299
mov edx, dword [esp + 0x28]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
push edx
push edx
test eax, eax
jne 0x404136
call edi
mov ebx, eax
mov eax, ebx
add esp, 0x47c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40536c
Capabilities:
Encrypt data via sspi
Send data
Send data on socket

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebp, edx
mov dword [esp + 0x1c], ecx
mov esi, dword [edx + 0x74]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.lua54.dll_lua_pushboolean
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x80]
jae 0x4054f3
mov ebx, dword [esp + 0x80]
sub ebx, dword [esp + 0x14]
mov eax, dword [esi + 0x18]
cmp ebx, eax
cmova ebx, eax
mov eax, dword [esi + 0x14]
add eax, dword [esi + 0x10]
add eax, ebx
mov dword [esp + 4], eax
mov dword [esp], 1
call sub.msvcrt.dll_calloc
mov edi, eax
test eax, eax
je 0x4054dd
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x10]
add eax, edi
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [esi + 0x10]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], 1
mov dword [esp + 0x3c], ebx
lea ecx, [edi + eax]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x4c], 6
mov dword [esp + 0x48], ecx
add ebx, eax
add ebx, edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], 0
mov dword [esp + 0x28], 4
mov dword [esp + 0x24], 0
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], eax
mov dword [esp + 0xc], 0
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x74]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.Secur32.dll_EncryptMessage
sub esp, 0x10
test eax, eax
jns 0x405495
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push eax
jmp 0x4054eb
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x3c]
add eax, dword [esp + 0x30]
add eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov eax, dword [ebp + 4]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
cmp eax, 0xffffffff
je 0x4054eb
add dword [esp + 0x18], eax
mov dword [esp], edi
call sub.msvcrt.dll_free
mov ecx, dword [esi + 0x18]
add dword [esp + 0x14], ecx
jmp 0x40539c
mov dword [esp], 0
call sub.msvcrt.dll_free
jmp 0x4054f3
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x18]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x406ae8
Capabilities:
Get graphical window text

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push edx
mov ebp, eax
lea edi, [eax + 1]
lea ebx, [edi + edi]
mov dword [esp], ebx
call sub.msvcrt.dll_malloc
mov esi, eax
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
sub esp, 0xc
sub ebx, 2
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.lua54.dll_lua_pushlstring
mov dword [esp], esi
call sub.msvcrt.dll_free
mov eax, ebp
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40ef68
Capabilities:
Get graphical window text

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebx, eax
mov eax, dword [eax + 4]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push esi
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push edi
mov ebp, eax
lea edx, [eax + 1]
lea eax, [edx + edx]
mov dword [esp + 0x2c], edx
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov esi, eax
lea edi, [esp + 0x30]
mov ecx, 4
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [esp + 0x40]
mov ecx, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push eax
push eax
mov eax, dword [esp + 0x40]
sub dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
sub dword [esp + 0x4c], eax
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
sub esp, 0xc
mov eax, dword [ebx + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
push eax
mov dword [esp + 0x10], 0x400
lea eax, [esp + 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DrawTextW]
sub esp, 0x14
mov eax, dword [0x42c3f0]
cmp dword [ebx + 8], eax
jne 0x40f0cf
mov dword [esp + 4], 0xfffffff0
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push ecx
push ecx
and eax, 0xffffffbf
je 0x40f0c5
test ebp, ebp
je 0x40f0c5
lea edi, [esp + 0x54]
mov ecx, 3
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x50], 6
lea eax, [esp + 0x50]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1604
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageA]
sub esp, 0x10
cmp dword [ebx + 0x30], 0
je 0x40f0c5
mov dword [esp], 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push edx
mov ecx, 2
cdq
idiv ecx
add dword [esp + 0x38], eax
add dword [esp + 0x38], 0xc
add dword [esp + 0x3c], 0xc
mov eax, dword [ebx + 8]
sub eax, dword [0x42c400]
mov eax, dword [eax*4 + 0x429d60]
mov dword [esp + 0x18], 6
mov edx, dword [esp + 0x3c]
add edx, eax
mov ecx, dword [esp + 0x4c]
cmp edx, ecx
cmovl edx, ecx
mov dword [esp + 0x14], edx
add eax, eax
add eax, dword [esp + 0x38]
mov edx, dword [esp + 0x48]
cmp eax, edx
cmovl eax, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
sub esp, 0x1c
mov dword [esp], esi
call sub.msvcrt.dll_free
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret