joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4000f64d
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x40026d24]
xor eax, esp
mov dword [esp + 0x228], eax
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [edx + 0x52]
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
mov eax, 0x40001edc
and dword [edi], 0
xor ecx, ecx
mov eax, dword [eax + ecx*4]
cmp eax, dword [edx + ecx*4 + 0x52]
jne 0x4000f6bc
inc ecx
mov eax, 0x40001edc
cmp ecx, 4
jne 0x4000f68c
push ecx
lea eax, [esp + 0x2c]
push eax
push edx
call fcn.400109da
push edi
push ebx
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.4000eb43
jmp 0x4000f6c9
push edi
push ebx
push dword [esp + 0x18]
mov ecx, esi
call fcn.4000ed53
cmp eax, 0x8001010d
jne 0x4000f762
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], ebx
xor ebx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], 0x80004005
mov dword [esp + 0x20], ebx
mov eax, dword [esi]
push esi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x400282b0]
call esi
push ebx
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x4000f5e0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x4000f755
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x10], ebx
jl 0x4000f74e
push edi
push dword [esp + 0x18]
push dword [esp + 0x28]
call dword [sym.imp.ole32.dll_CoGetInterfaceAndReleaseStream]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.4000e5d0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.40021790
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4001106b
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x40026d24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x2b4
push eax
mov word [ebx], ax
lea eax, [ebp - 0x4c0]
push eax
call sub.msvcrt.dll_memset
mov esi, dword [edi + 0xa]
lea eax, [ebp - 0x20c]
add esp, 8
and esi, 8
add esi, esi
push eax
push edi
call fcn.400109da
push 0x410
push 0x2b4
lea ecx, [ebp - 0x4c0]
push ecx
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x400110e8
lea eax, [ebp - 0x2ac]
mov edx, 0x104
push eax
mov ecx, ebx
call fcn.4000a6d1
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.40021790
leave
ret 0xc
Function at 0x40012929
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x40026d24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 0x2b4
push ebx
push eax
mov word [edi], ax
lea eax, [ebp - 0x4c0]
push eax
call sub.msvcrt.dll_memset
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.400126c8
push 0x410
push ebx
lea ecx, [ebp - 0x4c0]
push ecx
push 0x10
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4001299b
lea eax, [ebp - 0x2ac]
mov edx, 0x104
push eax
mov ecx, edi
call fcn.4000a6d1
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.40021790
leave
ret 0xc

Function at 0x40012f71
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
mov esi, ecx
lea ecx, [esi + 0x234]
mov dword [esi], 0x40001404
mov dword [esi + 4], 0x400013cc
call fcn.4000787b
mov eax, dword [esi + 0x44c]
test eax, eax
je 0x40012f9f
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x448]
test eax, eax
je 0x40012fb0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x440]
cmp eax, 0xffffffff
je 0x40012fc2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0x238
cmp word [esi], 0
je 0x40012fd5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret

Function at 0x40013170
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [0x40026d2c]
cmp esi, 0xaaaaaaaa
jne 0x400131ec
lea eax, [ebp - 8]
mov esi, 0x6400000
push eax
push 1
push 0
push 0x40002b28
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x400131e6
push edi
push 4
pop edi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x40002b90
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x400131dc
cmp dword [ebp - 4], edi
jne 0x400131dc
cmp dword [ebp - 0xc], edi
jne 0x400131dc
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov dword [0x40026d2c], esi
mov eax, esi
pop esi
leave
ret
Function at 0x4001392e
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4cc
mov eax, dword [0x40026d24]
xor eax, esp
mov dword [esp + 0x4c8], eax
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
mov ecx, dword [esi + 8]
call fcn.400160cd
mov edi, eax
test edi, edi
je 0x40013a58
mov ebx, 0x2b4
lea eax, [esp + 0x10]
push ebx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x18], 0x10
lea eax, [esp + 0x10]
push 0x20f28
push ebx
push eax
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x400139f0
lea eax, [esp + 0x1c]
push eax
push 0x138
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push dword [esp + 0x10]
mov ecx, dword [esi + 4]
mov edx, 0x137
call fcn.400170de
lea eax, [esp + 0x224]
push eax
push 0x13b
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
test byte [esp + 0x18], 0x10
jne 0x400139f0
push ebx
push 1
push 0xcf
push 0x138
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
lea edx, [esi + 0x10]
mov ecx, edi
call fcn.4001710a
test eax, eax
js 0x40013a05
mov ecx, esi
call fcn.400144ae
push ebx
push ecx
lea eax, [esp + 0x2d0]
mov edx, 0xc000
push eax
mov ecx, edi
call fcn.40016003
test eax, eax
js 0x40013a43
lea eax, [esp + 0x2c8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x2c8]
push eax
push 0x13e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push dword [esi + 0x28]
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 4]
call fcn.40013870
push edi
call dword [sym.imp.SHELL32.dll_Ordinal_12443]
mov ecx, dword [esp + 0x4d4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.40021790
mov esp, ebp
pop ebp
ret
Function at 0x40013f71
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4cc
mov eax, dword [0x40026d24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
lea edx, [ebp - 0x4cc]
push edi
call fcn.40015f2b
mov edi, eax
test edi, edi
je 0x4001404a
push esi
xor edx, edx
mov ecx, edi
call fcn.400160cd
mov esi, eax
test esi, esi
je 0x4001403e
push 0x2b4
lea eax, [ebp - 0x4c0]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4c0]
push 0x208
push 0x2b4
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x40014037
cmp dword [edi], 1
jbe 0x40014024
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
push 0x14b
push dword [0x400272f8]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
call fcn.400078cb
add esp, 0x10
jmp 0x40014037
lea eax, [ebp - 0x4b4]
mov edx, 0x104
push eax
mov ecx, ebx
call fcn.4000a6d1
push esi
call dword [sym.imp.SHELL32.dll_Ordinal_12443]
lea edx, [ebp - 0x4cc]
call fcn.40006880
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.40021790
leave
ret 4

Function at 0x40016752
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x40026d24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x400272f8]
push ebx
mov dword [ebp - 0x214], eax
mov ebx, 0x80004005
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4001683f
push 0x40003d68
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4001683f
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40016837
push edi
push 0x40003d80
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40016836
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0x40003d8c
mov dword [ebp - 0x218], eax
mov ecx, edi
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x228], 0x40003d90
push eax
push dword [ebp - 0x210]
mov dword [ebp - 0x224], 0x40003da0
push dword [ebp - 0x214]
mov dword [ebp - 0x220], 0x40003da4
mov dword [ebp - 0x21c], 2
call dword [0x400282b0]
call edi
mov ebx, eax
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.40021790
leave
ret
Function at 0x40016e79
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x40027140
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [0x40026d34], 0xffffffff
jne 0x40016f2c
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
test esi, esi
je 0x40016ef7
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x40027330], eax
test eax, eax
je 0x40016ef0
push edi
push edi
push esi
push 0x40016ce0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x40027334], eax
test eax, eax
je 0x40016ef0
push 0xffffffffffffffff
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push edi
push eax
push 2
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x40026d34], 0xffffffff
jne 0x40016f2c
mov eax, dword [0x40027334]
test eax, eax
je 0x40016f16
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x40027334], edi
mov eax, dword [0x40027330]
test eax, eax
je 0x40016f2c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x40027330], edi
cmp dword [0x40026d34], 0xffffffff
mov edi, 0x80004005
je 0x40016f8c
lea eax, [ebp - 4]
push eax
push 0x40001eac
push 1
push 0
push 0x40001eec
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x40016f8c
mov ecx, dword [ebp - 4]
push ebx
push 0x40004050
push dword [0x40026d34]
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x400282b0]
call esi
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x400282b0]
call esi
push 0x40027140
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40017668
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x40026d24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 5
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push 0x10
push 0x400
mov edi, edx
mov dword [ebp - 0x78], ebx
mov esi, ecx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x400176b5
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov dword [ebp - 0x70], eax
jmp 0x400176bc
mov dword [ebp - 0x70], 3
push 5
lea eax, [ebp - 0x10]
push eax
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
lea eax, [ebp - 0x10]
jne 0x400176db
mov eax, 0x40004020
push dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
push dword [ebp + 8]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x60]
push 0x40004024
push 0x28
push eax
call fcn.400078cb
add esp, 0x14
lea eax, [ebp - 0x78]
push edi
push esi
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
test eax, eax
jne 0x40017721
lea eax, [ebp - 0x60]
mov edx, edi
push eax
mov ecx, esi
call fcn.4000a6d1
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.40021790
leave
ret 8
Function at 0x40018cea
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x40026d24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x50
pop esi
mov edi, ecx
mov dword [ebp - 0x44], edx
mov ecx, esi
call fcn.40016660
mov ebx, eax
test ebx, ebx
je 0x40018dd7
push esi
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xor esi, esi
movzx eax, byte [esi + edi]
mov edx, esi
and edx, 0xfffffffc
mov ecx, esi
sub ecx, edx
shl ecx, 3
shl eax, cl
or dword [edx + ebx], eax
inc esi
cmp esi, 0x14
jb 0x40018d26
push 5
pop eax
mov ecx, eax
mov dword [ebp - 0x18], 0x123174bb
mov esi, 0x4002603c
mov dword [ebp - 0x14], 0x86521ff8
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x10], 0x98d2438b
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [ebp - 0xc], 0x7966ce12
xor esi, esi
mov dword [ebp - 8], 0xc5d92014
pop ecx
xor edx, edx
mov eax, esi
div ecx
mov eax, dword [ebp + edx*4 - 0x18]
xor dword [ebp + esi*4 - 0x2c], eax
inc esi
cmp esi, ecx
jb 0x40018d77
lea esi, [ebp - 0x2c]
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
push ecx
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
mov ecx, ebx
push 0
push 0x40026acc
push dword [0x40026050]
push eax
push 0x14
pop esi
mov edx, esi
call fcn.4001cb69
lea eax, [ebp - 0x40]
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x40018db6
push 0x50
mov eax, ebx
pop ecx
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x40018dc4
mov ecx, ebx
call fcn.40016679
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.40021790
leave
ret 4
Function at 0x4001a115
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
mov esi, edx
mov ebx, ecx
cmp dword [ebp + 0xc], edi
je 0x4001a153
sub ebx, esi
sub dword [ebp + 8], esi
mov ecx, dword [ebx + esi]
mov edx, dword [esi]
lea eax, [edx + ecx]
add edi, eax
mov eax, dword [ebp + 8]
mov dword [eax + esi], edi
mov eax, edx
xor eax, ecx
lea esi, [esi + 4]
and edi, eax
or edx, ecx
xor edi, edx
shr edi, 0x1f
sub dword [ebp + 0xc], 1
jne 0x4001a12d
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4001a162
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, edx
xor ebx, ebx
mov edx, ecx
mov dword [ebp - 8], eax
mov ecx, ebx
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x10], ecx
je 0x4001a1ed
push esi
mov esi, dword [ebp + 8]
sub edx, eax
sub esi, eax
mov dword [ebp - 0x10], edx
sub dword [ebp + 0xc], eax
push edi
mov dword [ebp + 8], esi
mov ecx, dword [eax]
mov edx, dword [edx + eax]
mov esi, dword [esi + eax]
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], esi
lea edi, [ecx + edx]
add edi, ebx
mov ebx, edi
sub ebx, esi
mov esi, dword [ebp + 0xc]
sub ebx, dword [ebp - 4]
mov dword [ebp - 4], ebx
mov dword [esi + eax], ebx
mov ebx, edi
mov esi, dword [ebp + 8]
xor ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, edi
xor eax, edx
xor ecx, edi
mov edx, dword [ebp - 0x10]
or ebx, eax
mov eax, edi
xor ebx, edi
xor eax, dword [ebp - 0xc]
or ecx, eax
shr ebx, 0x1f
mov eax, dword [ebp - 8]
xor ecx, edi
shr ecx, 0x1f
add eax, 4
sub dword [ebp + 0x10], 1
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jne 0x4001a190
pop edi
pop esi
sub ebx, ecx
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x4001a434
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
mov edi, edx
cmp dword [ebp + 0xc], esi
je 0x4001a473
sub ebx, edi
sub dword [ebp + 8], edi
mov edx, dword [ebx + edi]
mov eax, edx
mov ecx, dword [edi]
sub eax, ecx
sub eax, esi
xor ecx, edx
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [eax + edi], esi
xor esi, edx
or esi, ecx
lea edi, [edi + 4]
xor esi, edx
shr esi, 0x1f
sub dword [ebp + 0xc], 1
jne 0x4001a44c
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x400204cb
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [0x40026d24]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x400271b8], 0x1423
push ebx
push esi
push edi
mov edi, edx
jne 0x400205e5
cmp dword [0x400271cc], 1
mov ebx, dword [0x400271c8]
mov esi, dword [0x400271bc]
mov dword [ebp - 0xec], ebx
jne 0x40020557
lea ecx, [ebp - 0x84]
mov dword [ebp - 0xe8], 0x10
call fcn.40021020
push dword [ebp + 8]
call fcn.40021050
test byte [0x400271c0], 1
je 0x40020547
push esi
mov edx, 0x400271d8
lea ecx, [ebp - 0x84]
call fcn.40021050
lea ecx, [ebp - 0x84]
call fcn.40021160
lea edi, [ebp - 0x2c]
jmp 0x400205a7
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xe8], 0x14
call fcn.40020d60
push dword [ebp + 8]
mov edx, edi
lea ecx, [ebp - 0xe4]
call fcn.40020e20
test byte [0x400271c0], 1
je 0x40020596
push esi
mov edx, 0x400271d8
lea ecx, [ebp - 0xe4]
call fcn.40020e20
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0xe4]
call fcn.40020f50
lea edi, [ebp - 0x1c]
mov eax, ebx
xor edx, edx
mov ebx, dword [ebp - 0xe8]
cmp eax, esi
sbb ecx, ecx
and ecx, eax
mov al, byte [edx + edi]
xor byte [ecx + 0x400271d8], al
inc edx
lea eax, [ecx + 1]
cmp edx, ebx
jb 0x400205b1
mov eax, dword [0x400271c4]
xor edx, edx
mov ebx, dword [ebp - 0xec]
lea eax, [eax + ebx]
div esi
xor eax, eax
mov dword [0x400271c8], edx
inc eax
jmp 0x400205e7
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.40021790
leave
ret 4

Function at 0x40020d60
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x4002737c], 0
push ebx
push esi
mov esi, ecx
jne 0x40020de2
push eax
push ebx
push ecx
push edx
xor eax, eax
cpuid
xor eax, eax
xor ebx, 0x756e6547
sete al
xor ebx, ebx
xor ecx, 0x6c65746e
sete bl
and eax, ebx
xor ecx, ecx
xor edx, 0x49656e69
sete cl
and eax, ecx
mov dword [ebp - 4], eax
mov eax, 1
cpuid
xor ecx, ecx
xor edx, edx
mov ebx, 0xff0
and ebx, eax
mov dword [ebp - 8], ebx
pop edx
pop ecx
pop ebx
pop eax
cmp dword [ebp - 4], 0
mov ecx, 1
je 0x40020dd6
cmp dword [ebp - 8], 0x660
sbb eax, eax
not eax
and ecx, eax
mov eax, dword [ecx*4 + 0x4000151c]
mov dword [0x4002737c], eax
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x40], 0x67452301
mov dword [esi + 0x44], 0xefcdab89
mov dword [esi + 0x48], 0x98badcfe
mov dword [esi + 0x4c], 0x10325476
mov dword [esi + 0x50], 0xc3d2e1f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40021020
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x40021910
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4002194e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40021946
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40021950
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40021936
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40021a30
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40021a61
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40021a61
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x40021a61
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40022070
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor edx, edx
xor ecx, ecx
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
push edi
mov edi, eax
mov ebx, dword [esp + 0x14]
push ebp
mov cl, byte [esi + 0x100]
mov ebp, ebx
mov dl, byte [esi + 0x101]
test ebx, ebx
je 0x400221ab
shr ebx, 2
and eax, 3
test ebx, ebx
je 0x40022180
test eax, eax
jne 0x40022180
mov eax, edi
lea edi, [edi + ebx*4]
mov dword [esp + 0x1c], edi
sub eax, 4
mov ebp, ebx
mov edi, dword [eax + 4]
inc ecx
xor eax, eax
and ecx, 0xff
mov al, byte [ecx + esi]
add edx, eax
and edx, 0xff
mov bl, byte [edx + esi]
mov byte [ecx + esi], bl
inc ecx
mov byte [edx + esi], al
add al, bl
mov al, byte [eax + esi]
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [ecx + esi]
add edx, eax
and edx, 0xff
mov bl, byte [edx + esi]
mov byte [ecx + esi], bl
inc ecx
mov byte [edx + esi], al
add al, bl
mov al, byte [eax + esi]
shl eax, 8
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [ecx + esi]
add edx, eax
and edx, 0xff
mov bl, byte [edx + esi]
mov byte [ecx + esi], bl
inc ecx
mov byte [edx + esi], al
add al, bl
mov al, byte [eax + esi]
shl eax, 0x10
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [ecx + esi]
add edx, eax
and edx, 0xff
mov bl, byte [edx + esi]
mov byte [ecx + esi], bl
mov byte [edx + esi], al
add al, bl
mov al, byte [eax + esi]
shl eax, 0x18
lea ebx, [ebp*4]
xor edi, eax
mov eax, dword [esp + 0x1c]
sub eax, ebx
mov dword [eax], edi
dec ebp
jne 0x400220c0
mov ebp, dword [esp + 0x18]
and ebp, 3
test ebp, ebp
je 0x400221ab
lea edi, [eax + 4]
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [ecx + esi]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [edx + esi]
mov byte [ecx + esi], bl
mov byte [edx + esi], al
add al, bl
mov bl, byte [edi]
mov al, byte [eax + esi]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x40022180
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc