joyce8/EMBER2024-capa huggingface dataset:
Function at 0x400120d4
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x40025d24]
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
add esp, 0xc
lea eax, [ebp - 0x4c0]
push 0x410
push ebx
push eax
push 0x10
push ecx
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.40011e88
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x40012148
lea eax, [ebp - 0x2ac]
mov edx, 0x104
push eax
mov ecx, edi
call fcn.4000a269
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.40020a80
leave
ret 0xc

Function at 0x40012919
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x40025d24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x270], eax
mov edi, 0x80004005
lea eax, [ebp - 0x25c]
mov ebx, ecx
push eax
push 0x104
mov esi, edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40012a0e
cmp eax, 0x104
ja 0x40012a0e
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov esi, eax
test esi, esi
js 0x40012a0e
push 0x27
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x40012a0c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
push 0x40002b90
lea edi, [ebx + 0x238]
push 0x104
push edi
call fcn.40007625
mov esi, eax
add esp, 0x14
test esi, esi
js 0x40012a0e
mov eax, dword [ebp - 0x270]
push 0
push 0
push edi
mov esi, dword [eax]
push 5
push eax
mov ecx, dword [esi + 0x18]
call dword [0x400272ac]
call dword [esi + 0x18]
mov esi, eax
test esi, esi
js 0x40012a0e
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x440], eax
cmp eax, 0xffffffff
jne 0x40012a0e
mov esi, 0x80004005
jmp 0x40012a0e
mov esi, edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.40020a80
leave
ret 4
Function at 0x40012ff2
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4cc
mov eax, dword [0x40025d24]
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.4001569b
mov edi, eax
test edi, edi
je 0x4001311c
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 0x400130b4
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.40016638
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 0x400130b4
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.4001665e
test eax, eax
js 0x400130c9
mov ecx, esi
call fcn.40013b18
push ebx
push ecx
lea eax, [esp + 0x2d0]
mov edx, 0xc000
push eax
mov ecx, edi
call fcn.400155dd
test eax, eax
js 0x40013107
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.40012f3a
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.40020a80
mov esp, ebp
pop ebp
ret
Function at 0x4001360d
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4cc
mov eax, dword [0x40025d24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
lea edx, [ebp - 0x4cc]
push edi
call fcn.40015517
mov edi, eax
test edi, edi
je 0x400136e6
push esi
xor edx, edx
mov ecx, edi
call fcn.4001569b
mov esi, eax
test esi, esi
je 0x400136da
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 0x400136d3
cmp dword [edi], 1
jbe 0x400136c0
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
push 0x14b
push dword [0x40026300]
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.40007625
add esp, 0x10
jmp 0x400136d3
lea eax, [ebp - 0x4b4]
mov edx, 0x104
push eax
mov ecx, ebx
call fcn.4000a269
push esi
call dword [sym.imp.SHELL32.dll_Ordinal_12443]
lea edx, [ebp - 0x4cc]
call fcn.40006670
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.40020a80
leave
ret 4

Function at 0x400140d1
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x40025d24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov dword [ebp - 0x2bc], eax
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.40013f49
test eax, eax
je 0x4001411b
push 1
push eax
call dword [sym.imp.USER32.dll_GetLastActivePopup]
push eax
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
xor eax, eax
jmp 0x40014177
mov ecx, dword [ebp - 0x2bc]
call fcn.40013e8e
mov dword [esi], eax
test eax, eax
je 0x40014174
test ebx, ebx
je 0x40014174
push ecx
mov edx, ebx
mov ecx, eax
call fcn.4001403e
push 0x108
push 0x2b4
mov dword [esi + 4], eax
lea eax, [ebp - 0x2b8]
push eax
push 0
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x40014174
mov eax, dword [ebp - 0x2b8]
push 0
push eax
push 0x402
push dword [esi]
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.40020a80
leave
ret 8
Function at 0x40015af7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [0x400262f4]
sub esp, 0xc
push edi
xor edi, edi
inc edi
test ecx, ecx
jne 0x40015b9b
and dword [ebp - 4], ecx
lea eax, [ebp - 4]
push ebx
push eax
push ecx
lea eax, [ebp - 8]
mov ebx, edi
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetUserPreferredUILanguages]
test eax, eax
je 0x40015b8a
mov eax, dword [ebp - 4]
xor ecx, ecx
push esi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.40015bca
mov esi, eax
test esi, esi
je 0x40015b82
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetUserPreferredUILanguages]
test eax, eax
je 0x40015b82
cmp dword [ebp - 8], 0
jbe 0x40015b82
push 2
lea eax, [ebp - 0xc]
push eax
push 0x20000070
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x40015b82
xor ebx, ebx
cmp dword [ebp - 0xc], edi
setne bl
mov ecx, esi
call fcn.40015bdd
pop esi
lea eax, [ebx + 1]
mov ecx, 0x400262f4
xchg dword [ecx], eax
mov ecx, dword [0x400262f4]
pop ebx
xor eax, eax
cmp ecx, edi
pop edi
sete al
leave
ret

Function at 0x40015c9c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x40025d24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40026300]
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 0x40015d89
push 0x40003d58
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x40015d89
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40015d81
push edi
push 0x40003d70
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40015d80
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0x40003d7c
mov dword [ebp - 0x218], eax
mov ecx, edi
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x228], 0x40003d80
push eax
push dword [ebp - 0x210]
mov dword [ebp - 0x224], 0x40003d90
push dword [ebp - 0x214]
mov dword [ebp - 0x220], 0x40003d94
mov dword [ebp - 0x21c], 2
call dword [0x400272ac]
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.40020a80
leave
ret
Function at 0x400163f4
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x40026148
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [0x40025d34], 0xffffffff
jne 0x400164a7
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
test esi, esi
je 0x40016472
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x40026338], eax
test eax, eax
je 0x4001646b
push edi
push edi
push esi
push 0x400161f0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4002633c], eax
test eax, eax
je 0x4001646b
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 [0x40025d34], 0xffffffff
jne 0x400164a7
mov eax, dword [0x4002633c]
test eax, eax
je 0x40016491
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4002633c], edi
mov eax, dword [0x40026338]
test eax, eax
je 0x400164a7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x40026338], edi
cmp dword [0x40025d34], 0xffffffff
mov edi, 0x80004005
je 0x40016506
lea eax, [ebp - 4]
push eax
push 0x40001e9c
push 1
push 0
push 0x40001edc
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x40016506
mov eax, dword [ebp - 4]
push ebx
push 0x40004040
push dword [0x40025d34]
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0x14]
call dword [0x400272ac]
call dword [esi + 0x14]
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x400272ac]
call esi
push 0x40026148
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40016b78
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x40025d24]
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 0x40016bc5
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov dword [ebp - 0x70], eax
jmp 0x40016bcc
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 0x40016beb
mov eax, 0x40004010
push dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
push dword [ebp + 8]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x60]
push 0x40004014
push 0x28
push eax
call fcn.40007625
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 0x40016c31
lea eax, [ebp - 0x60]
mov edx, edi
push eax
mov ecx, esi
call fcn.4000a269
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.40020a80
leave
ret 8
Function at 0x400180ce
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x40025d24]
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.40015bca
mov ebx, eax
test ebx, ebx
je 0x400181bb
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 0x4001810a
push 5
pop eax
mov ecx, eax
mov dword [ebp - 0x18], 0x123174bb
mov esi, 0x4002503c
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 0x4001815b
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 0x40025acc
push dword [0x40025050]
push eax
push 0x14
pop esi
mov edx, esi
call fcn.4001bfad
lea eax, [ebp - 0x40]
mov byte [eax], 0
inc eax
sub esi, 1
jne 0x4001819a
push 0x50
mov eax, ebx
pop ecx
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x400181a8
mov ecx, ebx
call fcn.40015bdd
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.40020a80
leave
ret 4
Function at 0x40019543
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 0x40019581
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 0x4001955b
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4001958a
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 0x40019615
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 0x400195b8
pop edi
pop esi
sub ebx, ecx
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x40019838
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 0x40019877
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 0x40019850
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4001f81b
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x40025d24]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov eax, edx
push edi
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xf4], esi
cmp dword [esi], 0x1423
je 0x4001f852
xor eax, eax
jmp 0x4001f93b
cmp dword [esi + 0x14], 1
lea ebx, [esi + 0x20]
mov ecx, dword [esi + 0x10]
mov edi, dword [esi + 4]
mov dword [ebp - 0xf0], ecx
jne 0x4001f8a8
lea ecx, [ebp - 0x84]
mov dword [ebp - 0xec], 0x10
call fcn.40020340
push dword [ebp + 8]
call fcn.40020370
test byte [esi + 8], 1
je 0x4001f898
push edi
mov edx, ebx
lea ecx, [ebp - 0x84]
call fcn.40020370
lea ecx, [ebp - 0x84]
call fcn.40020490
lea eax, [ebp - 0x2c]
jmp 0x4001f8f6
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xec], 0x14
call fcn.40020080
push dword [ebp + 8]
mov edx, dword [ebp - 0xe8]
lea ecx, [ebp - 0xe4]
call fcn.40020140
test byte [esi + 8], 1
je 0x4001f8e5
push edi
mov edx, ebx
lea ecx, [ebp - 0xe4]
call fcn.40020140
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0xe4]
call fcn.40020270
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xe8], eax
xor edx, edx
mov eax, dword [ebp - 0xf0]
mov esi, dword [ebp - 0xe8]
cmp eax, edi
sbb ecx, ecx
and ecx, eax
mov al, byte [edx + esi]
xor byte [ecx + ebx], al
inc edx
lea eax, [ecx + 1]
cmp edx, dword [ebp - 0xec]
jb 0x4001f90a
mov esi, dword [ebp - 0xf4]
xor edx, edx
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0xf0]
div edi
xor eax, eax
mov dword [esi + 0x10], edx
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.40020a80
leave
ret 4

Function at 0x40020080
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x40026384], 0
push ebx
push esi
mov esi, ecx
jne 0x40020102
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 0x400200f6
cmp dword [ebp - 8], 0x660
sbb eax, eax
not eax
and ecx, eax
mov eax, dword [ecx*4 + 0x40001524]
mov dword [0x40026384], 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 0x40020340
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 0x40020be0
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 0x40020c1e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40020c16
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40020c20
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40020c06
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40020cf0
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 0x40020d21
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40020d21
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x40020d21
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40021170
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 0x400212ab
shr ebx, 2
and eax, 3
test ebx, ebx
je 0x40021280
test eax, eax
jne 0x40021280
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 [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 8
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x10
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
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 0x400211c0
mov ebp, dword [esp + 0x18]
and ebp, 3
test ebp, ebp
je 0x400212ab
lea edi, [eax + 4]
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x40021280
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc