joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418b50
Capabilities:
Create thread
Print debug messages
Terminate thread

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
push eax
push 0
push 0
push 0x418be0
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov esi, eax
test esi, esi
je 0x418bc9
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x418bb5
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
test eax, eax
jne 0x418b9e
mov dword [esp + 4], eax
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
setne al
pop esi
add esp, 8
ret
push 0x44f238
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
setne al
pop esi
add esp, 8
ret

Function at 0x418cb0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x4603b0]
test eax, eax
jne 0x418d6d
push esi
push edi
push str.WINTRUST.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
push str.CryptCATAdminAcquireContext
push esi
call edi
push str.CryptCATAdminReleaseContext
push esi
mov dword [0x460398], eax
call edi
push str.CryptCATAdminCalcHashFromFileHandle
push esi
mov dword [0x46039c], eax
call edi
push str.CryptCATAdminEnumCatalogFromHash
push esi
mov dword [0x4603a0], eax
call edi
push str.CryptCATAdminReleaseCatalogContext
push esi
mov dword [0x4603a4], eax
call edi
push str.WinVerifyTrust
push esi
mov dword [0x4603a8], eax
call edi
mov ecx, dword [0x460398]
pop edi
test ecx, ecx
mov dword [0x4603ac], eax
pop esi
je 0x418d63
mov ecx, dword [0x46039c]
test ecx, ecx
je 0x418d63
mov ecx, dword [0x4603a0]
test ecx, ecx
je 0x418d63
mov ecx, dword [0x4603a4]
test ecx, ecx
je 0x418d63
mov ecx, dword [0x4603a8]
test ecx, ecx
je 0x418d63
test eax, eax
je 0x418d63
mov eax, 1
mov dword [0x4603b0], eax
ret
mov eax, 2
mov dword [0x4603b0], eax
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
ret

Function at 0x419400
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
lea ecx, [esp]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
push str.xavver
push str.SOFTWARE360Safekiller
push connect
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x41944b
cmp dword [esp + 8], 4
jne 0x41944b
mov eax, dword [esp]
cmp eax, 0x11
ja 0x419450
mov eax, 0x11
add esp, 0xc
ret
Function at 0x419480
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x34c
lea eax, [esp + 4]
push ebx
push esi
push edi
push eax
call fcn.004193c0
add esp, 4
mov ecx, 0x104
lea eax, [esp + 0x10]
cmp byte [eax], 0
je 0x4194aa
inc eax
dec ecx
jne 0x41949f
jmp 0x4194ee
test ecx, ecx
je 0x4194ee
lea edx, [esp + 0xc]
test edx, edx
je 0x4194bf
mov eax, 0x104
sub eax, ecx
jmp 0x4194c3
mov eax, dword [esp + 0xc]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 0x10]
je 0x4194ee
mov esi, str.update_
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x4194e6
mov byte [eax], cl
inc eax
dec edx
jne 0x4194d7
jmp 0x4194ea
test edx, edx
jne 0x4194eb
dec eax
mov byte [eax], 0
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov edx, str..tmp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, 0x104
lea edi, [esp + ecx + 0x10]
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x41951d
mov byte [eax], cl
inc eax
dec esi
jne 0x41950e
jmp 0x419521
test esi, esi
jne 0x419522
dec eax
mov byte [eax], 0
lea eax, [esp + 0x218]
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41958f
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea edx, [esp + 0x248]
mov esi, 0x104
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x419565
mov byte [eax], cl
inc eax
dec esi
jne 0x419556
jmp 0x419569
test esi, esi
jne 0x41956a
dec eax
lea edx, [esp + 0x14]
mov byte [eax], 0
push edx
call ebp
lea eax, [esp + 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x419546
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x34c
ret
Function at 0x41ae40
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
xor ebp, ebp
push esi
cmp ebx, 1
push edi
jl 0x41ae5b
cmp ebx, 8
jg 0x41ae5b
mov eax, 1
jmp 0x41ae5d
xor eax, eax
mov esi, dword [esp + 0x14]
push str.bad_pack_level
push eax
push esi
call fcn.00419690
mov eax, dword [esi + 0x6af70]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af78], ebp
jne 0x41ae94
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
mov ecx, 0x7fff
xor eax, eax
lea edi, [esi + 0x4af70]
mov dword [esi + 0x6af6c], ebp
rep stosd dword es:[edi], eax
mov ax, word [ebx*8 + 0x4316ca]
xor ecx, ecx
mov dword [esi + 0x6af98], eax
mov cx, word [ebx*8 + 0x4316c8]
xor edx, edx
mov dword [esi + 0x6af9c], ecx
mov dx, word [ebx*8 + 0x4316cc]
xor eax, eax
mov dword [esi + 0x6afa0], edx
mov ax, word [ebx*8 + 0x4316ce]
cmp ebx, 2
mov dword [esi + 0x6af94], eax
jg 0x41aef5
mov eax, dword [esp + 0x1c]
or byte [eax], 4
jmp 0x41af01
cmp ebx, 8
jl 0x41af01
mov eax, dword [esp + 0x1c]
or byte [eax], 2
lea edi, [esi + 0x1af70]
push 0x10000
push edi
push esi
mov dword [esi + 0x6af84], ebp
mov dword [esi + 0x6af74], ebp
call dword [esi + 0xc]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af90], eax
je 0x41af7a
cmp eax, 0xffffffff
je 0x41af7a
cmp eax, 0x106
mov dword [esi + 0x6af8c], ebp
jae 0x41af45
push esi
call fcn.0041b190
add esp, 4
mov dword [esi + 0x6af7c], ebp
xor eax, eax
mov edx, dword [esi + 0x6af7c]
xor ecx, ecx
mov cl, byte [edi + eax]
and edx, 0x3ff
and ecx, 0x7fff
shl edx, 5
xor ecx, edx
inc eax
cmp eax, 2
mov dword [esi + 0x6af7c], ecx
jb 0x41af4d
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41c210
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x41c21b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x41c31e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x431718]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x431718]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x431718]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x431718]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x431718]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x431718]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x431718]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x431718]
xor eax, edx
inc ecx
dec edi
jne 0x41c236
pop edi
test esi, esi
je 0x41c340
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x431718]
xor eax, edx
inc ecx
dec esi
jne 0x41c322
pop esi
pop ebx
not eax
ret

Function at 0x41c350
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [ecx]
and esi, 0xff
mov eax, edx
and eax, 0xff
xor eax, esi
shr edx, 8
mov eax, dword [eax*4 + 0x431718]
xor eax, edx
mov edx, dword [ecx + 4]
mov dword [ecx], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 8]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 4], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x431718]
xor eax, edx
mov dword [ecx + 8], eax
ret
Function at 0x41c580
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x44
lea eax, [esp + 0x10]
push esi
mov esi, dword [esp + 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileInformationByHandle]
test eax, eax
jne 0x41c5a2
mov eax, 0x200
pop esi
add esp, 0x44
ret
mov eax, dword [esp + 0x14]
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
je 0x41c5b5
mov ebp, 1
test al, 2
je 0x41c5bc
or ebp, 2
test al, 4
je 0x41c5c3
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x41c5cd
or ebp, 0x10
test al, 0x20
je 0x41c5d4
or ebp, 0x20
test ecx, ecx
je 0x41c5e0
or ebp, 0x40000000
jmp 0x41c5e6
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x41c5f6
or ebp, 0x800000
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0x28
mov dword [esp + 0x14], eax
jbe 0x41c6a5
mov edi, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x60]
push 2
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 4
push ecx
push esi
call ebx
cmp word [esp + 0x58], 0x54ad
jne 0x41c6a5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [eax + 0x34]
cmp ecx, edx
jbe 0x41c6a5
push 0
push 0
push eax
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push esi
call ebx
mov eax, dword [esp + 0x1c]
cmp eax, 0x5a4d
je 0x41c69f
cmp eax, 0x454e
je 0x41c69f
cmp eax, 0x454c
je 0x41c69f
cmp eax, 0x4550
jne 0x41c6a5
or ebp, 0x400000
mov eax, dword [esp + 0x5c]
pop edi
test eax, eax
pop ebx
je 0x41c6b1
mov dword [eax], ebp
mov eax, dword [esp + 0x58]
pop ebp
test eax, eax
je 0x41c6c0
mov edx, dword [esp + 8]
mov dword [eax], edx
mov esi, dword [esp + 0x58]
test esi, esi
je 0x41c709
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.0041c4e0
mov dword [esi], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x34]
push edx
push eax
call fcn.0041c4e0
mov ecx, dword [esp + 0x2c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x28]
push ecx
push edx
call fcn.0041c4e0
mov dword [esi + 0x10], eax
add esp, 0x18
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x41c748
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x50]
lea ecx, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
call fcn.0041c510
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
and ecx, 0xffff
and edx, 0xffff
shl ecx, 0x10
add esp, 0x10
or ecx, edx
mov dword [esi], ecx
xor eax, eax
pop esi
add esp, 0x44
ret
Function at 0x41c900
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0x10]
mov al, byte [ebx + 0x2d]
push esi
mov esi, dword [esp + 0x10]
push edi
test al, al
je 0x41c985
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x41c931
cmp dword [ebx + 0x40], ebp
jae 0x41c931
push eax
call fcn.0042d5f4
add esp, 4
mov dword [ebx + 0x3c], 0
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x41c94b
lea eax, [ebp + ebp]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], ebp
mov edi, dword [ebx + 0x3c]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
test ebp, ebp
jbe 0x41c982
lea edi, [ebx + 0x30]
mov eax, dword [ebx + 0x3c]
mov cl, byte [esi + eax]
push ecx
push edi
call fcn.0041c3d0
mov edx, dword [ebx + 0x3c]
add esp, 8
mov byte [esi + edx], al
inc esi
cmp esi, ebp
jb 0x41c967
mov esi, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x41c9cd
mov eax, dword [ebx + 0x24]
mov edi, dword [ebx + 0x28]
lea ecx, [eax + ebp]
cmp ecx, edi
jb 0x41c9a9
pop edi
pop esi
mov dword [ebx + 0x14], 0x30000
pop ebp
xor eax, eax
pop ebx
ret 8
mov ecx, ebp
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x24]
pop edi
add eax, ebp
pop esi
mov dword [ebx + 0x24], eax
mov eax, ebp
pop ebp
pop ebx
ret 8
mov eax, dword [ebx + 4]
test eax, eax
je 0x41c9ef
lea ecx, [esp + 0x14]
push 0
push ecx
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
mov dword [ebx + 0x14], 0x1000000
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x41ce80
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov edx, dword [ebx + 0x84]
test edx, edx
je 0x41cef9
mov eax, dword [ebx + 0x8c]
mov ebp, dword [ebx + 0x88]
cmp eax, ebp
jae 0x41cf4a
mov ecx, dword [esp + 0x14]
sub ebp, eax
cmp ebp, ecx
jbe 0x41ceaf
mov ebp, ecx
mov ecx, ebp
lea esi, [eax + edx]
mov eax, dword [esp + 0x10]
mov edx, ecx
push edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x8c]
mov ecx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x78]
add edx, ebp
add ecx, ebp
push eax
mov dword [ebx + 0x8c], edx
mov dword [ebx + 0x74], ecx
call fcn.0041c210
add esp, 0xc
mov dword [ebx + 0x78], eax
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x41cf43
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x41cf4a
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x74]
add ecx, eax
push eax
mov eax, dword [ebx + 0x78]
push esi
push eax
mov dword [ebx + 0x74], ecx
call fcn.0041c210
add esp, 0xc
mov dword [ebx + 0x78], eax
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
ret 8
mov dword [ebx + 0x14], 0x1000000
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x420ff0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x21c
lea eax, [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x224]
push esi
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
jne 0x42101b
pop edi
pop esi
pop ebx
add esp, 0x21c
ret 8
lea ecx, [esp + 0x1c]
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x421038
pop edi
pop esi
pop ebx
add esp, 0x21c
ret 8
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x14], edi
jne 0x421058
pop edi
pop esi
pop ebx
add esp, 0x21c
ret 8
push ebp
xor ebp, ebp
push edi
push esi
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4211ae
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push str.VarFileInfoTranslation
push edi
mov dword [esp + 0x20], ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4211ae
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
xor edx, edx
mov ecx, dword [eax]
mov dx, word [eax]
shr ecx, 0x10
push ecx
push edx
push str.StringFileInfo_04x_04x
lea eax, [esp + 0x30]
push 0x104
push eax
call esi
add esp, 0x14
lea ecx, [esp + 0x24]
lea edx, [esp + 0x128]
push ecx
push str._sCompanyName
push 0x104
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x128]
push eax
push ecx
push edx
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4211ae
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, eax
je 0x421106
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ebp, eax
mov ebx, dword [esp + 0x234]
mov eax, dword [ebx]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x42111f
cmp ebp, dword [eax - 4]
jle 0x421181
mov edx, dword [0x436d00]
add eax, 0xfffffff4
cmp eax, edx
je 0x42114d
push ecx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x421145
mov eax, dword [ebx]
sub eax, 0xc
push eax
call fcn.0042d5f4
add esp, 4
mov ecx, dword [0x436cfc]
mov dword [ebx], ecx
test ebp, ebp
jne 0x42115b
mov edx, dword [0x436cfc]
mov dword [ebx], edx
jmp 0x421181
lea eax, [ebp + 0xd]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x4211a9
mov dword [eax], 1
mov byte [eax + ebp + 0xc], 0
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
add eax, 0xc
mov dword [ebx], eax
lea ecx, [ebp + 1]
cmp ecx, ebp
jb 0x42119e
mov edi, dword [ebx]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov eax, dword [ebx]
mov dword [eax - 8], ebp
mov ecx, dword [ebx]
mov byte [ecx + ebp], 0
mov ebp, 1
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x21c
ret 8
Function at 0x4211d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 8]
push ecx
push edx
push str.EnableFirewall
push str.SYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyStandardProfile
push connect
mov dword [esp + 0x18], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x42121b
cmp dword [esp + 4], 4
jne 0x42121b
mov eax, dword [esp + 8]
test eax, eax
je 0x42121b
mov eax, 1
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret
Function at 0x422050
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
call fcn.004221b0
add esp, 8
test eax, eax
jne 0x42207b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
mov ecx, 0x104
lea eax, [esp + 0x14]
cmp byte [eax], 0
je 0x42208f
inc eax
dec ecx
jne 0x422084
jmp 0x4220bf
test ecx, ecx
je 0x4220bf
lea edx, [esp + 0x10]
test edx, edx
je 0x4220a4
mov eax, 0x104
sub eax, ecx
jmp 0x4220a8
mov eax, dword [esp + 0x10]
mov ecx, 0x104
push 0x4373d8
sub ecx, eax
lea edx, [esp + eax + 0x18]
push ecx
push edx
call fcn.004057a0
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
push 0x104
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x11c]
dec ecx
push eax
push 0
lea ebp, [esp + ecx + 0x20]
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea ecx, [esp + 0x118]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x42210c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret
inc ebx
mov edi, 0x450480
mov ecx, dword [edi]
mov esi, 0x104
mov eax, ebp
mov dl, byte [ecx]
test dl, dl
je 0x42212a
mov byte [eax], dl
inc eax
inc ecx
dec esi
jne 0x42211b
jmp 0x42212e
test esi, esi
jne 0x42212f
dec eax
lea edx, [esp + 0x14]
mov byte [eax], 0
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4220ff
mov ecx, dword [edi]
mov esi, 0x104
mov eax, ebx
mov dl, byte [ecx]
test dl, dl
je 0x42215a
mov byte [eax], dl
inc eax
inc ecx
dec esi
jne 0x42214b
jmp 0x42215e
test esi, esi
jne 0x42215f
dec eax
mov byte [eax], 0
lea eax, [esp + 0x118]
push 0
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
je 0x4220ff
push 4
lea edx, [esp + 0x11c]
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
add edi, 4
cmp edi, str.LibDrv.dat
jb 0x422112
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20c
ret
Function at 0x4221f0
Capabilities:
Check if file exists
Get file attributes
Link many functions at runtime

Disassembly:
sub esp, 0x208
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
jne 0x4223ca
call fcn.00422050
test eax, eax
jne 0x422217
pop edi
pop esi
add esp, 0x208
ret
mov al, byte [0x45ec20]
mov ecx, 0x40
mov byte [esp + 0x10c], al
xor eax, eax
lea edi, [esp + 0x10d]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x110]
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea edx, [esp + 0x10c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
jne 0x42226b
pop edi
pop esi
add esp, 0x208
ret
mov byte [eax], 0
lea eax, [esp + 0x10c]
push str.AntiEng.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x10c]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42229f
pop edi
xor eax, eax
pop esi
add esp, 0x208
ret
lea edx, [esp + 0x10c]
push edx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
mov dword [esi + 4], eax
jne 0x4222bd
pop edi
pop esi
add esp, 0x208
ret
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.EngInit
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
push str.EngLoad
push eax
call edi
mov ecx, dword [esi + 4]
push str.EngGetNext
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi + 4]
push str.EngCount
push edx
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
push str.EngRemove
push eax
call edi
mov ecx, dword [esi + 4]
push str.EngGetReport
push ecx
mov dword [esi + 0x18], eax
call edi
mov edx, dword [esi + 4]
push str.EngPost
push edx
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
push str.EngGetGroup
push eax
call edi
mov ecx, dword [esi + 4]
push str.EngLib_Init
push ecx
mov dword [esi + 0x24], eax
call edi
mov edx, dword [esi + 4]
push str.EngEnable
push edx
mov dword [esi + 0x28], eax
call edi
mov dword [esi + 0x40], eax
mov eax, dword [esi + 4]
push str.EngSetLoadDisabled
push eax
call edi
mov ecx, dword [esi + 4]
push str.EngDisable
push ecx
mov dword [esi + 0x44], eax
call edi
mov edx, dword [esi + 4]
push str.EngGetUrlHistory
push edx
mov dword [esi + 0x48], eax
call edi
mov dword [esi + 0x50], eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 8], 0x104
test eax, eax
je 0x4223ca
lea ecx, [esp + 8]
push ecx
call eax
add esp, 4
test eax, eax
je 0x4223ca
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x2c], edx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x38], ecx
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x3c], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x4c], ecx
pop edi
mov eax, 1
pop esi
add esp, 0x208
ret