joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427690
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10c
lea eax, [esp + 4]
push esi
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0x20]
push edx
xor esi, esi
push eax
push ecx
mov dword [esp + 0x20], esi
call fcn.00412130
add esp, 0x14
mov dword [esp + 4], eax
test eax, eax
je 0x4277fb
mov edx, dword [esp + 0x20]
push ebx
push ebp
push edi
mov ecx, 0x450f78
cmp dword [ecx], edx
je 0x4276ee
add ecx, 0x14
inc esi
cmp ecx, str.com_smss.exe
jb 0x4276d9
jmp 0x4277d2
lea esi, [esi + esi*4]
xor ebx, ebx
shl esi, 2
xor ebp, ebp
mov edi, dword [esi + 0x450f80]
test edi, edi
jne 0x42770c
mov edx, dword [esp + 0x14]
mov edi, dword [edx + eax - 4]
jmp 0x427724
cmp edi, 0xffffffff
jne 0x427724
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov ebx, dword [eax]
lea ebp, [eax + 8]
sub edi, ecx
test ebp, ebp
jne 0x427754
mov edx, dword [esp + 0x1c]
mov ecx, edi
sub ecx, edx
push 4
add ecx, eax
push ecx
call dword [sym.imp.KERNEL32.DLL_IsBadReadPtr]
test eax, eax
jne 0x427750
mov eax, dword [esp + 0x1c]
mov edx, edi
sub edx, eax
mov eax, dword [esp + 0x10]
mov ebx, dword [edx + eax]
lea ebp, [edx + eax]
add ebp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp ebx, ecx
jbe 0x42775f
lea ebx, [ecx - 8]
test ebp, ebp
je 0x4277f1
mov ecx, dword [esi + 0x450f88]
mov eax, dword [esi + 0x450f84]
push ebp
push ecx
mov ecx, dword [esi + 0x450f7c]
push eax
push ecx
push edi
push ebx
call fcn.00427810
add esp, 0x18
test eax, eax
je 0x4277ce
mov edx, dword [esp + 0x124]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4277ce
lea eax, [esp + 0x14]
push 0
push eax
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x10]
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10c
ret 8
mov dword [esp + 0x18], 2
jmp 0x4277d2
mov eax, esi
pop esi
add esp, 0x10c
ret 8
Function at 0x427910
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431da0
push 0x42d2ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], edi
cmp word [edi], 0x5a4d
je 0x427967
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x3c]
add eax, edi
mov dword [ebp - 0x28], eax
cmp dword [eax], 0x4550
jne 0x42794b
mov cx, word [eax + 6]
cmp cx, si
je 0x42794b
xor edx, edx
mov dx, word [eax + 0x14]
lea edx, [edx + eax + 0x18]
mov dword [ebp - 0x20], edx
and ecx, 0xffff
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*8 - 0x28]
mov dword [ebp - 0x24], ecx
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x10]
lea edx, [edx + ecx + 0x1000]
cmp edx, dword [ebp + 0xc]
jae 0x427a67
mov eax, dword [eax + 0x88]
mov dword [ebp - 0x30], eax
cmp eax, esi
je 0x427a67
push eax
push edi
call fcn.004123d0
add esp, 8
mov esi, eax
add esi, edi
mov dword [ebp - 0x38], esi
lea ecx, [esi + 0x10]
mov dword [ebp - 0x3c], ecx
xor edx, edx
mov dx, word [esi + 0xe]
xor eax, eax
mov ax, word [esi + 0xc]
add edx, eax
mov dword [ebp - 0x34], edx
mov eax, edx
dec edx
mov dword [ebp - 0x34], edx
test eax, eax
je 0x427a67
cmp dword [ebp - 0x1c], 0x1e
jae 0x427a67
mov eax, dword [ecx]
test eax, 0x80000000
je 0x427a53
test dword [ecx + 4], 0x80000000
je 0x427a53
and eax, 0x7fffffff
add eax, esi
mov ebx, eax
mov dword [ebp - 0x40], ebx
xor edi, edi
mov dword [ebp - 0x44], edi
cmp edi, 0xa
jae 0x427a47
xor ecx, ecx
mov cx, word [ebx]
push ecx
mov edx, dword [edi*4 + 0x431d4c]
push edx
lea eax, [ebx + 2]
push eax
call dword [sym.imp.ntdll.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x427a5b
add dword [ebp - 0x1c], 0xa
cmp dword [ebp - 0x1c], 0x14
jae 0x427a67
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
add ecx, 8
mov dword [ebp - 0x3c], ecx
jmp 0x4279ec
inc edi
jmp 0x427a1c
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0x14
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x427a90
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push edi
push 0x104
push eax
call esi
lea ecx, [esp + 0x114]
push 0x104
push ecx
call esi
mov esi, dword [sym.imp.MSVCRT.dll__mbschr]
lea edx, [esp + 0x10]
push 0x5c
push edx
call esi
add esp, 8
test eax, eax
jne 0x427ade
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov byte [eax], 0
lea eax, [esp + 0x114]
push 0x5c
push eax
call esi
mov esi, eax
add esp, 8
test esi, esi
jne 0x427b03
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov ebx, dword [esp + 0x220]
mov edi, dword [esp + 0x21c]
mov byte [esi], 0
inc esi
lea ecx, [esp + 0x10]
push esi
push ecx
push str._sWindows.old_s
push ebx
push edi
call fcn.004073a0
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0x14
push edi
call ebp
test eax, eax
je 0x427b49
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret 8
lea edx, [esp + 0x10]
push esi
push edx
push str._sWindows.old.000_s
push ebx
push edi
call fcn.004073a0
add esp, 0x14
push edi
call ebp
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x208
ret 8
Function at 0x427dc0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov dword [esp + 0x10], ecx
mov ax, word [esi]
test ax, ax
je 0x427f1a
mov ebp, dword [esp + 0x1c]
and eax, 0xffff
lea eax, [eax + eax*4]
mov ecx, dword [ebp + eax*8 - 4]
lea eax, [ebp + eax*8 - 0x28]
cmp ecx, 0xe00000e0
je 0x427ea4
and ecx, 0xf0000000
cmp ecx, 0xe0000000
jne 0x427f1a
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x2c]
cmp edx, ecx
jb 0x427f1e
mov edi, dword [eax + 0x10]
add edi, ecx
cmp edx, edi
jae 0x427f1e
mov ecx, dword [eax + 0x14]
mov edi, dword [esp + 0x18]
push 0
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
lea edx, [esp + 0x18]
push 0
push edx
lea eax, [esp + 0x28]
push 4
push eax
push edi
call ebx
test eax, eax
je 0x427f1a
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x24]
push 4
push edx
push edi
call ebx
test eax, eax
je 0x427f1a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jne 0x427f1a
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
dec word [esi]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push esi
push ebp
push edi
call fcn.00427dc0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
mov eax, dword [eax + 0x14]
mov edi, dword [esp + 0x18]
push 0
add eax, 0xa1
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x28]
push 4
push edx
push edi
call ebx
test eax, eax
je 0x427f1a
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push edi
call ebx
test eax, eax
je 0x427f1a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jne 0x427f1a
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
dec word [esi]
push edx
push ecx
mov ecx, dword [esp + 0x18]
push eax
push esi
push ebp
push edi
call fcn.00427dc0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
mov edx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
pop ecx
ret 0x18

Function at 0x428240
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov dword [esi], 0x431dd8
test eax, eax
je 0x428261
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
add esi, 8
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop esi
ret

Function at 0x4284b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 2
add ecx, 8
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4284da
xor eax, eax
pop esi
pop ecx
ret
lea eax, [esp + 4]
push 0
push eax
push 0xa600
push 0x451d80
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
push esi
jne 0x428502
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret
Function at 0x428510
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x104
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, 0x45c3d8
mov eax, dword [esi]
lea ecx, [esp + 8]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_s
push 0x104
push ecx
call fcn.004073a0
add esp, 0x10
lea edx, [esp + 8]
push edx
push connect
call edi
add esi, 4
cmp esi, str.SuperKiller.exe
jb 0x428523
pop edi
pop esi
add esp, 0x104
ret

Function at 0x429da0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [esp + 0x110]
push esi
mov esi, dword [sym.imp.MSVCRT.dll__mbsrchr]
push edi
push 0x5c
push ebx
call esi
mov edi, eax
add esp, 8
test edi, edi
je 0x429e5d
push 0x2e
push edi
call esi
mov esi, eax
add esp, 8
test esi, esi
je 0x429e5d
push str..dll
push esi
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x429e5d
mov eax, esi
sub eax, ebx
cmp eax, 0xa
jle 0x429e5d
cmp word [esi - 6], 0x3830
lea ecx, [esi - 6]
jne 0x429e5d
mov al, byte [ecx]
cmp al, 0x2e
je 0x429e17
cmp al, 0x30
jl 0x429e5d
cmp al, 0x39
jg 0x429e5d
mov al, byte [ecx + 1]
inc ecx
cmp al, 0x2e
jne 0x429e07
lea ecx, [esp + 0xc]
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
jne 0x429e5d
lea edx, [esp + 0x10]
push 0x104
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
sub edi, ebx
lea eax, [esp + 0x10]
push edi
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x429e5d
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x108
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x108
ret 4

Function at 0x42b570
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
and ecx, 0xffff
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
test esi, esi
je 0x42b629
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
test esi, esi
je 0x42b629
push ebp
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42b629
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ecx, ebp
mov esi, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c]
push 0
push 0
mov ecx, edx
push 2
push 0
and ecx, 3
push 0
push 0x40000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
pop edi
test esi, esi
je 0x42b622
lea ecx, [esp + 0x10]
push 0
push ecx
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
pop esi
pop ebp
mov eax, 1
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x42b630
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x45ec34]
sub esp, 0x158
test eax, eax
push esi
jne 0x42b64d
mov eax, 1
pop esi
add esp, 0x158
ret
mov esi, dword [esp + 0x160]
xor eax, eax
mov dword [esp + 5], eax
mov byte [esp + 4], 0
mov dword [esp + 9], eax
mov dword [esp + 0xd], eax
mov word [esp + 0x11], ax
test esi, esi
mov byte [esp + 0x13], al
je 0x42b78a
lea ecx, [esp + 4]
push 1
push ecx
push esi
call fcn.00411660
add esp, 0xc
test eax, eax
je 0x42b77f
push esi
call fcn.0042b7a0
mov edx, eax
add esp, 4
cmp edx, 0xffffffff
je 0x42b76a
push edi
mov ecx, 0x51
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x120], edx
mov edx, dword [esp + 8]
mov dword [esp + 0x124], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x12c], ecx
mov dword [esp + 0x130], edx
mov edx, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x128], eax
mov edi, 0x104
lea eax, [esp + 0x1c]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x42b70d
mov byte [eax], cl
inc eax
dec edi
jne 0x42b6fe
jmp 0x42b711
test edi, edi
jne 0x42b712
dec eax
mov byte [eax], 0
call fcn.0042b0e0
mov edx, dword [eax]
push 0
push 0
lea ecx, [esp + 0x20]
push 0x148
push ecx
push 0x80002014
mov ecx, eax
call dword [edx + 0x1c]
cmp eax, 0xffffffff
pop edi
jne 0x42b752
push str.error_driver.IoControl_error__n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, 1
pop esi
add esp, 0x158
ret
push str.add_rule_ok__n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, 1
pop esi
add esp, 0x158
ret
push str.error_mygetfilesize__n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
xor eax, eax
pop esi
add esp, 0x158
ret
push str.error_CalcFileMD5__n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
xor eax, eax
pop esi
add esp, 0x158
ret

Function at 0x42b7a0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42b7c9
or eax, eax
pop esi
ret
lea ecx, [esp + 8]
push edi
push ecx
push esi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x42b7f0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x11], eax
mov ecx, 0x40
mov word [esp + 0x15], ax
lea edi, [esp + 0x1d]
mov byte [esp + 0x17], al
mov byte [esp + 0x1c], al
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x124]
mov ebp, dword [sym.imp.KERNEL32.DLL_QueryDosDeviceA]
stosw word es:[edi], ax
mov word [esp + 0x10], 0x3a41
mov esi, 1
stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
test ecx, esi
je 0x42b879
lea edx, [esp + 0x1c]
push 0x104
lea eax, [esp + 0x14]
push edx
push eax
call ebp
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.ntdll.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x42b896
mov cl, byte [esp + 0x10]
shl esi, 1
inc cl
test esi, esi
mov byte [esp + 0x10], cl
jne 0x42b83e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
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, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x1c]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebx + 2]
mov esi, ecx
mov ecx, edx
mov eax, ecx
add esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
pop ebp
mov byte [ecx + ebx], al
mov eax, 1
pop ebx
add esp, 0x110
ret
Function at 0x42c040
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431fb0
push 0x42d2ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x42c1e6
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
mov esi, eax
test esi, esi
je 0x42c1e6
lea edi, [esi - 9]
push 9
push str._system32_
push edi
mov ebx, dword [sym.imp.MSVCRT.dll__mbsnbicmp]
call ebx
add esp, 0xc
test eax, eax
je 0x42c1e6
push 9
push str.dllcache_
push edi
call ebx
add esp, 0xc
test eax, eax
je 0x42c1e6
push str.wsock32.dll
push esi
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
call edi
add esp, 8
test eax, eax
jne 0x42c0d9
mov eax, 1
jmp 0x42c0f1
push str.usp10.dll
push esi
call edi
add esp, 8
test eax, eax
jne 0x42c1e6
mov eax, 2
mov edi, dword [ebp + 0xc]
xor ecx, ecx
cmp edi, ecx
jne 0x42c112
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], edi
cmp word [edi], 0x5a4d
jne 0x42c1c9
mov esi, dword [edi + 0x3c]
add esi, edi
mov dword [ebp - 0x2c], esi
cmp word [esi + 6], cx
je 0x42c1c9
cmp dword [esi], 0x4550
jne 0x42c1c9
cmp word [esi + 0x18], 0x10b
jne 0x42c1c9
cmp eax, 1
jne 0x42c174
mov ebx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov ecx, dword [ebp - 0x30]
call fcn.0042bb00
test eax, eax
jne 0x42c18b
push ebx
push esi
push edi
mov ecx, dword [ebp - 0x30]
call fcn.0042bd10
test eax, eax
je 0x42c1c9
jmp 0x42c18b
cmp eax, 2
jne 0x42c1c9
mov eax, dword [ebp + 0x10]
push eax
push esi
push edi
mov ecx, dword [ebp - 0x30]
call fcn.0042be70
test eax, eax
je 0x42c1c9
push 1
call fcn.00414f70
add esp, 4
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x42d160
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
ret
Function at 0x42d3cc
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x42d3fd
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x42d404
cmp ebx, dword [ebp + 8]
jae 0x42d404
xor eax, eax
jmp 0x42d5ea
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42d415
xor eax, eax
inc eax
jmp 0x42d5e9
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42d427
cmp ecx, edx
jae 0x42d48b
cmp dword [eax + 4], 0
je 0x42d430
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42d41c
cmp dword [ebp + 8], 0
je 0x42d44a
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42d48b
cmp eax, esi
jae 0x42d48b
mov ecx, dword [0x460df8]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x42d46c
cmp dword [eax*4 + 0x460e00], esi
je 0x42d492
inc eax
cmp eax, ecx
jl 0x42d45e
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
jl 0x42d502
mov eax, dword [ebp + 8]
jmp 0x42d504
xor eax, eax
jmp 0x42d5e9
test eax, eax
jle 0x42d40d
xor edx, edx
mov ebx, 0x460e40
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x42d40d
cmp dword [eax*4 + 0x460e00], esi
je 0x42d4e1
lea eax, [ecx - 1]
test eax, eax
jl 0x42d4ce
cmp dword [eax*4 + 0x460e00], esi
je 0x42d4ca
dec eax
jns 0x42d4be
test eax, eax
jge 0x42d4df
cmp ecx, 0x10
jge 0x42d4da
inc ecx
mov dword [0x460df8], ecx
lea eax, [ecx - 1]
jmp 0x42d4e1
je 0x42d4f9
xor edx, edx
test eax, eax
jl 0x42d4f9
lea ecx, [edx*4 + 0x460e00]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x42d4e7
xor eax, eax
xchg dword [ebx], eax
jmp 0x42d40d
xor eax, eax
test eax, eax
je 0x42d5e7
cmp dword [ebp - 8], 0x1000000
jne 0x42d5e7
test byte [ebp - 0xc], 0xcc
je 0x42d579
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42d5e7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42d5e7
cmp word [eax + 0x18], 0x10b
jne 0x42d5e7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42d5e7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x42d579
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x42d579
test byte [ecx + 0x27], 0x80
jne 0x42d48b
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x460e40
xchg dword [edx], ecx
test ecx, ecx
jne 0x42d5e9
mov ecx, dword [0x460df8]
test ecx, ecx
mov edx, ecx
jle 0x42d5a8
lea eax, [ecx*4 + 0x460dfc]
cmp dword [eax], esi
je 0x42d5a8
dec edx
sub eax, 4
test edx, edx
jg 0x42d59c
test edx, edx
jne 0x42d5d9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42d5b5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42d5cd
lea eax, [edx*4 + 0x460e00]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x42d5bb
cmp ecx, 0x10
jge 0x42d5d9
inc ecx
mov dword [0x460df8], ecx
xor eax, eax
mov ecx, 0x460e40
xchg dword [ecx], eax
jmp 0x42d40d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret