joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e388
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
jne 0x40e3a8
and dword [esi + 8], 0
and dword [esi + 0xc], 0
call fcn.0040e367
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x40e3f9
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jne 0x40e3e3
push 0
lea eax, [ebp + 8]
push eax
push 0x10000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e3f8
mov eax, dword [ebp + 8]
test eax, eax
je 0x40e3f8
and dword [esi + 0xc], 0
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov al, byte [ecx + eax]
mov byte [edi + ebx], al
inc edi
inc dword [esi + 0xc]
cmp edi, dword [ebp + 0xc]
jb 0x40e3b3
pop ebx
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], 0
pop esi
pop ebp
ret 8

Function at 0x40e408
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.0040e439
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40e5f1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x428da0
call fcn.00417869
mov ecx, dword [ebp + 0xc]
call fcn.00401715
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push 1
push ebx
push str.SoftwareAutoIt_v3AutoIt
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e629
xor al, al
jmp 0x40e6bc
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push str.Include
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e6b1
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412718
pop ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040290b
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x1c]
push eax
push esi
push ebx
push ebx
push str.Include
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e69c
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x10], eax
push esi
mov word [esi + eax*2], cx
mov ecx, dword [ebp + 0xc]
call fcn.0040182f
mov bl, 1
mov eax, dword [ebp - 0x18]
dec dword [eax]
jne 0x40e6b1
push eax
call fcn.00412769
push esi
call fcn.00412769
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call fcn.00417846
ret
Function at 0x40e9b9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x43b034]
xor eax, esp
mov dword [esp + 0x258], eax
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40ea02
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40e9f7
or eax, eax
jmp 0x40ea02
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x25c]
pop esi
xor ecx, esp
call fcn.004126e7
mov esp, ebp
pop ebp
ret

Function at 0x40ebf1
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x24
mov eax, 0x428e41
call fcn.00417869
push ecx
lea ecx, [ebp - 0x30]
call fcn.00403a7b
xor ebx, ebx
lea ecx, [ebp - 0x30]
push 0x433988
mov dword [ebp - 4], ebx
call fcn.00408e53
mov esi, dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40eca2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40ec40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ec45
jmp 0x40eca6
cmp eax, 3
jne 0x40eca8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], eax
inc dword [eax]
push 0x433988
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040ed80
cmp eax, 0xffffffff
je 0x40ec98
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x20]
call fcn.0040191a
lea ecx, [ebp - 0x20]
call fcn.0040ebf1
test al, al
je 0x40ec96
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
mov bl, al
lea ecx, [ebp - 0x20]
call fcn.004015bf
jmp 0x40eca8
test al, 0x10
je 0x40eca8
mov bl, 1
lea ecx, [ebp - 0x30]
call fcn.004015bf
mov al, bl
call fcn.00417846
ret

Function at 0x410168
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410193
xor eax, eax
jmp 0x4101a6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
ret 4
Function at 0x410708
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x10]
cmp dword [edi + 8], eax
jae 0x4107f0
sub eax, dword [edi + 8]
push ebx
mov ebx, 0x403
sub ebx, dword [edi + 0x43c]
mov dword [ebp - 4], ebx
push esi
cmp eax, ebx
jae 0x410738
mov ebx, eax
mov dword [ebp - 4], eax
cmp dword [edi + 0x14], 1
mov esi, ebx
mov dword [ebp - 8], esi
jne 0x410779
test ebx, ebx
je 0x4107e8
mov esi, dword [edi + 8]
mov edx, dword [edi + 0x440]
mov eax, dword [edi]
and edx, 0x1ffff
mov ecx, dword [edi + 0x434]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
inc dword [edi + 0x440]
inc dword [edi + 8]
dec ebx
jne 0x41074b
mov ebx, dword [ebp - 4]
jmp 0x4107e8
test ebx, ebx
je 0x4107e8
mov eax, dword [edi + 0x47c]
dec esi
test eax, eax
je 0x41078f
cmp eax, 0x10000
jne 0x4107ae
push dword [edi + 0x1c]
push 0x10000
push 1
push dword [edi + 0x478]
call fcn.004131eb
add esp, 0x10
and dword [edi + 0x47c], 0
mov ecx, dword [edi + 0x47c]
mov eax, dword [edi + 0x478]
mov dl, byte [ecx + eax]
lea eax, [ecx + 1]
mov ecx, dword [edi + 0x440]
and ecx, 0x1ffff
mov dword [edi + 0x47c], eax
mov eax, dword [edi + 0x434]
mov byte [ecx + eax], dl
inc dword [edi + 0x440]
inc dword [edi + 8]
test esi, esi
jne 0x41077d
add dword [edi + 0x43c], ebx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4107f5
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x18], 1
jne 0x41081b
push dword [esi + 0x448]
mov eax, dword [esi + 0xc]
push dword [esi + 0x444]
add eax, dword [esi + 4]
push eax
call fcn.00412770
add esp, 0xc
jmp 0x410834
push dword [esi + 0x20]
push dword [esi + 0x448]
push 1
push dword [esi + 0x444]
call fcn.0041375f
add esp, 0x10
mov eax, dword [esi + 0x448]
add dword [esi + 0xc], eax
and dword [esi + 0x448], 0
pop esi
ret

Function at 0x4108d1
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
push edi
push 0x20
pop edi
movzx eax, word [esi + 0x454]
mov cl, al
shl dword [esi + 0x450], cl
cmp ax, di
jae 0x41093a
mov ecx, dword [esi + 0x448]
mov edx, dword [esi + 0x444]
mov al, byte [esi + 0x453]
mov byte [edx + ecx], al
inc dword [esi + 0x448]
mov edx, dword [esi + 0x448]
mov ecx, dword [esi + 0x444]
mov al, byte [esi + 0x452]
mov byte [edx + ecx], al
inc dword [esi + 0x448]
shl dword [esi + 0x450], 0x10
add word [esi + 0x454], 0x10
cmp word [esi + 0x454], di
jb 0x4108ec
mov word [esi + 0x454], di
mov ecx, esi
pop edi
pop esi
jmp fcn.004107f5

Function at 0x410d5a
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 8
push 0
lea eax, [esi + 0x44]
push eax
call fcn.004158c0
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
pop esi
ret
Function at 0x4117e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x43b034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x98]
push esi
push edi
mov edi, dword [ebp + 8]
and dword [ebx + 0x10], 0
mov dword [ebx + 0xc], eax
call fcn.00410d5a
push 0x43798d
call fcn.00412dc0
pop ecx
lea ecx, [ebp - 0x98]
mov esi, eax
call fcn.00410d5a
push esi
push 0x43798d
lea ecx, [ebp - 0x98]
call fcn.00410d8b
lea ecx, [ebp - 0x98]
call fcn.00410e2a
and dword [ebx + 8], 0
push 0x437990
push edi
call fcn.00412e64
mov dword [ebx + 4], eax
pop ecx
pop ecx
test eax, eax
jne 0x411864
inc eax
jmp 0x4118e1
push 2
push 0
push eax
call fcn.00413870
add esp, 0xc
xor esi, esi
inc esi
push dword [ebx + 4]
push 8
push esi
push 0x43c6e0
call fcn.0041375f
push dword [ebx + 4]
push 8
push esi
push 0x43c6e8
call fcn.0041375f
push dword [ebx + 4]
push esi
push 4
push str.AU3_
call fcn.0041375f
push dword [ebx + 4]
push esi
push 4
push 0x43c314
call fcn.0041375f
add esp, 0x40
lea eax, [ebp - 0x98]
push 0x99f2
push 0x10
push eax
call fcn.0040249b
push dword [ebx + 4]
lea eax, [ebp - 0x98]
push 0x10
push esi
push eax
call fcn.0041375f
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004126e7
mov esp, ebp
pop ebp
ret 8

Function at 0x4118f4
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0x10]
test eax, eax
je 0x411913
push esi
mov esi, dword [eax + 0x208]
push eax
call fcn.004135ce
mov eax, esi
pop ecx
test esi, esi
jne 0x4118ff
pop esi
push dword [edi + 4]
push 4
push 1
push str.AU3_
call fcn.0041375f
push dword [edi + 4]
push 4
push 1
push 0x43c314
call fcn.0041375f
push dword [edi + 4]
call fcn.00412faf
add esp, 0x24
pop edi
ret
Function at 0x411942
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x43b034]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x43321c
push ecx
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], edi
call fcn.00412e64
mov dword [ebp - 0xf0], eax
pop ecx
pop ecx
test eax, eax
jne 0x41198f
push edi
call fcn.00412faf
pop ecx
xor al, al
jmp 0x411a76
push 0x10000
call fcn.00412718
pop ecx
push eax
lea ecx, [ebp - 0x100]
call fcn.0040290b
lea ecx, [ebp - 0xe4]
call fcn.00411637
push dword [ebp + 8]
xor esi, esi
lea ecx, [ebp - 0xe4]
inc esi
mov dword [ebp - 0xec], esi
call fcn.0041177c
push edi
call fcn.0041750f
pop ecx
test eax, eax
jne 0x411a4e
mov esi, dword [ebp - 0x100]
push edi
push 0x10000
push 1
push esi
call fcn.004131eb
add esp, 0x10
mov dword [ebp - 0xe8], eax
lea ecx, [ebp - 0xec]
push eax
push esi
call fcn.00410112
mov eax, dword [ebp - 0xe8]
xor ebx, ebx
test eax, eax
je 0x411a2c
mov edi, eax
push ecx
push ecx
lea ecx, [ebp - 0xe4]
call fcn.00411750
xor byte [esi + ebx], al
inc ebx
cmp ebx, edi
jb 0x411a0b
mov edi, dword [ebp - 0xf4]
mov eax, dword [ebp - 0xe8]
push dword [ebp - 0xf0]
push eax
push 1
push esi
call fcn.0041375f
push edi
call fcn.0041750f
add esp, 0x14
test eax, eax
je 0x4119d9
mov esi, dword [ebp - 0xec]
push edi
call fcn.00412faf
pop ecx
push dword [ebp - 0xf0]
call fcn.00412faf
pop ecx
mov ecx, dword [ebp - 0xf8]
mov dword [ecx], esi
lea ecx, [ebp - 0x100]
call fcn.00402936
mov al, 1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004126e7
mov esp, ebp
pop ebp
ret 0xc

Function at 0x411a89
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov ebx, 0x10000
mov edi, ecx
push ebx
call fcn.00412718
pop ecx
push eax
lea ecx, [ebp - 0xc]
call fcn.0040290b
push dword [ebp + 8]
call fcn.0041750f
pop ecx
jmp 0x411ad7
push ebx
push 1
push dword [ebp - 0xc]
call fcn.004131eb
push dword [edi + 4]
push eax
push 1
push dword [ebp - 0xc]
call fcn.0041375f
push dword [ebp + 8]
call fcn.0041750f
add esp, 0x24
push dword [ebp + 8]
test eax, eax
je 0x411ab3
call fcn.00412faf
pop ecx
lea ecx, [ebp - 0xc]
call fcn.00402936
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x424056
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43b034]
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.004196f3
mov dword [ebp - 0x14], eax
cmp dword [0x43dd9c], esi
jne 0x424149
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4240d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x424229
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x424229
push 0x4320c0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x424229
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43dd9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43dda0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43dda4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ddac], eax
test eax, eax
je 0x424146
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43dda8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x42416e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x424161
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x424183
push 4
pop eax
jmp 0x42422b
cmp dword [ebp - 0x14], esi
je 0x424183
push dword [0x43dd9c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x424168
mov eax, dword [0x43dda8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4241e1
cmp dword [0x43ddac], edi
je 0x4241e1
push eax
call ebx
push dword [0x43ddac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4241e1
test eax, eax
je 0x4241e1
call ecx
test eax, eax
je 0x4241d6
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 0x4241d6
test byte [ebp - 8], 1
jne 0x4241e1
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x424211
mov eax, dword [0x43dda0]
cmp eax, edi
je 0x42420e
push eax
call ebx
test eax, eax
je 0x42420e
call eax
mov esi, eax
test esi, esi
je 0x42420e
mov eax, dword [0x43dda4]
cmp eax, edi
je 0x42420e
push eax
call ebx
test eax, eax
je 0x42420e
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43dd9c]
call ebx
test eax, eax
je 0x424229
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x42422b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004126e7
mov esp, ebp
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x407720
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4077b1
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x4077b1
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi], 0x4550
jne 0x4077b1
cmp dword [eax + edi + 0x7c], 0
je 0x4077b1
mov eax, dword [eax + edi + 0x78]
xor esi, esi
add eax, edi
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
add ecx, edi
mov ebx, dword [eax + 0x18]
add edx, edi
mov dword [ebp - 4], ecx
mov ecx, dword [eax + 0x1c]
add ecx, edi
mov dword [ebp + 8], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x4077b1
mov eax, dword [edx + esi*4]
mov ecx, dword [ebp + 0xc]
add eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4077a0
test dl, dl
je 0x40779c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4077a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x407780
xor eax, eax
jmp 0x4077a5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4077ba
mov edx, dword [ebp + 8]
inc esi
cmp esi, ebx
jb 0x407778
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + esi*2]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bea0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449c4d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x45e580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0042751c
mov edi, eax
add esp, 4
test edi, edi
je 0x40bf3d
push 1
mov dword [ebp - 4], 0
call fcn.00425025
add esp, 4
mov dword [edi + 4], eax
jmp 0x40bf3f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.00403240
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x40bf9a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x40bf9a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x40bfb6
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x40bfd9
cmp byte [ebp + 0xc], 0
je 0x40bfc5
push esi
call fcn.00425816
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x40bfe5
mov esi, str.ios_base::badbit_set
jmp 0x40bff5
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0040c440
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.004044c0
push 0x45aab8
lea eax, [ebp - 0x28]
push eax
call fcn.0042881d
int3
Function at 0x41aa80
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x45e580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x90]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0x10]
mov dword [ebp - 0x94], ebx
push eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x90], 0x67452301
mov dword [ebp - 0x8c], 0xefcdab89
mov dword [ebp - 0x88], 0x98badcfe
mov dword [ebp - 0x84], 0x10325476
call fcn.00422c60
lea ecx, [ebp - 0x90]
call fcn.0041b390
movups xmm0, xmmword [ebp - 0x38]
xor esi, esi
lea edi, [ebp - 0x28]
movups xmmword [ebp - 0xa8], xmm0
movzx eax, byte [ebp + esi - 0xa8]
push eax
push str._02X
push edi
call fcn.004246f0
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x10
jl 0x41ab02
xorps xmm0, xmm0
mov byte [ebp - 8], 0
movups xmmword [ebx], xmm0
lea ecx, [ebp - 0x28]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ab40
sub ecx, edx
lea eax, [ebp - 0x28]
push ecx
push eax
mov ecx, ebx
call fcn.00401cc0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004277b9
mov esp, ebp
pop ebp
ret

Function at 0x41b360
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xf
jbe 0x41b36e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41b37e
xor al, al
pop ebp
ret
shr eax, 4
not al
and al, 1
pop ebp
ret
Function at 0x41cc50
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x45e580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x45fe98]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24c], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x45f930]
cmp eax, dword [ecx + 4]
jg 0x41ce17
cmp dword [0x45e4b0], 0
jne 0x41cdfa
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.0041da30
test al, al
jne 0x41cd09
push esi
lea eax, [ebp - 0x1c]
push str._05d
push eax
call fcn.00404010
mov esi, eax
add esp, 0xc
cmp esi, 0x45e4a0
je 0x41cdf1
mov ecx, dword [0x45e4b4]
cmp ecx, 0xf
jbe 0x41cdae
mov edx, dword [0x45e4a0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41cda4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ce4d
jmp 0x41cda4
push edi
push 0
push 2
mov dword [ebp - 0x24c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.00429270
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41cd77
cmp dword [ebp - 0x240], esi
je 0x41cd6b
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41cd50
jmp 0x41cd77
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x24c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x24c]
lea eax, [ebp - 0x1c]
push str._05d__05d
push eax
call fcn.00404010
add esp, 0x10
mov esi, eax
cmp esi, 0x45e4a0
pop edi
jmp 0x41ccc6
push ecx
push edx
call fcn.0042754c
add esp, 8
mov dword [0x45e4b0], 0
mov dword [0x45e4b4], 0xf
mov byte [0x45e4a0], 0
movups xmm0, xmmword [esi]
movups xmmword [0x45e4a0], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x45e4b0], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x1c]
call fcn.00404b50
pop esi
push 0x45e4a0
mov ecx, ebx
call fcn.00403ca0
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004277b9
mov esp, ebp
pop ebp
ret
push 0x45f930
call fcn.00427a3f
add esp, 4
cmp dword [0x45f930], 0xffffffff
jne 0x41cc8d
push 0x44b430
call fcn.004277a4
push 0x45f930
call fcn.004279ee
add esp, 8
jmp 0x41cc8d
call fcn.0042c4df
int3