joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403930
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov eax, 0x4002c
mov ebp, esp
push edi
push esi
push ebx
call fcn.00432100
sub esp, eax
lea edi, [ebp - 0x40014]
lea eax, [ebp - 0x40028]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x3fffc
mov dword [esp], edi
mov dword [ebp - 0x40028], 0
call sub.PSAPI.DLL_EnumProcesses
sub esp, 0xc
test eax, eax
je 0x403a50
mov eax, dword [ebp - 0x40028]
mov dword [ebp - fcn.00444440], vtable.e5TimerE.0
mov dword [ebp - 0x40020], 0
mov dword [ebp - 0x4001c], 0
shr eax, 2
test eax, eax
mov eax, 0
mov dword [ebp - 0x40018], 0
jle 0x403b41
lea ecx, [ebp - 0x40024]
xor ebx, ebx
mov dword [ebp - 0x4002c], ecx
jmp 0x4039e5
mov edx, dword [ebp - 0x40020]
add ebx, 1
mov dword [edx + eax*4 - 4], esi
mov eax, dword [ebp - 0x40028]
shr eax, 2
cmp eax, ebx
jle 0x403a22
mov eax, dword [ebp - 0x40018]
mov ecx, dword [ebp - 0x4002c]
add eax, 1
mov esi, dword [edi + ebx*4]
mov dword [esp], eax
call fcn.00444340
mov eax, dword [ebp - 0x40018]
sub esp, 4
test eax, eax
jne 0x4039c5
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0040f760
mov eax, dword [ebp - 0x40018]
jmp 0x4039c5
mov ecx, dword [ebp - 0x40018]
mov eax, dword [ebp - 0x4001c]
mov edi, dword [ebp + 8]
mov dword [edi], vtable.e5TimerE.0
mov dword [edi + 4], edx
mov dword [edi + 0xc], ecx
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
cmp eax, 0x456040
mov dword [eax], vtable.e5TimerE.0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
je 0x403a40
lea eax, [ebp - 0x40024]
mov ecx, eax
mov dword [ebp - 0x4002c], eax
mov eax, dword [0x45604c]
mov dword [ebp - fcn.00444440], vtable.e5TimerE.0
mov dword [ebp - 0x40020], 0
mov dword [ebp - 0x4001c], 0
mov dword [esp], eax
mov dword [ebp - 0x40018], 0
call fcn.00444340
mov edx, dword [0x45604c]
sub esp, 4
mov esi, dword [ebp - 0x40020]
mov ecx, dword [0x456044]
test edx, edx
mov eax, esi
jle 0x403ae6
test eax, eax
je 0x403adb
mov ebx, dword [ecx]
mov dword [eax], ebx
add eax, 4
add ecx, 4
sub edx, 1
jne 0x403ad3
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x40018]
mov dword [ebp - fcn.00444440], vtable.e5TimerE.0
mov ecx, dword [edi + 0xc]
mov eax, dword [eax + 4]
mov dword [edi + 0xc], edx
mov edx, dword [ebp - 0x4001c]
mov dword [edi + 4], esi
mov dword [ebp - 0x40018], ecx
mov ecx, dword [edi + 8]
test eax, eax
mov dword [ebp - 0x40020], eax
mov dword [edi + 8], edx
mov dword [ebp - 0x4001c], ecx
je 0x403a40
mov dword [esp], eax
call fcn.0044b910
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor ecx, ecx
xor edx, edx
jmp 0x403a2e
Function at 0x403b70
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.0040d6a0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x30]
sub esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x462aa4
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x45f494
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
jne 0x403ca9
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x4621f4
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
jne 0x403ca0
mov edi, dword [ebp + 0xc]
lea esi, [ebp - 0x28]
mov ecx, dword [edi + 4]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x50]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
sub esp, 8
mov edi, dword [eax + 0x24]
mov eax, dword [ebp + 0xc]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040a9e0
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call edi
sub esp, 8
mov ecx, esi
call fcn.00405e80
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x403cc0
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov dword [esp + 8], 1
mov ecx, dword [ebx + 4]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x18]
mov edx, dword [ebp - 0x2c]
mov ebx, eax
mov eax, dword [edx]
sub esp, 0xc
mov dword [esp], edx
call dword [eax + 8]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
sub esp, 4
mov dword [esp], edx
call dword [eax + 8]
sub esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
test ebx, ebx
sete al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [esi + 4]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x2c]
sub esp, 8
jmp 0x403c52
Function at 0x405070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebp, dword [esp + 0x78]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x7c]
test ebp, ebp
je 0x405160
test edi, edi
je 0x405160
lea ebx, [esp + 0x18]
mov dword [esp + 0xc], 0x38
mov dword [esp + 8], str.1.2.3
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.00429250
test eax, eax
jne 0x405160
mov eax, dword [esp + 0x70]
mov ecx, dword [esi]
cmp dword [esp + 0x2c], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], eax
mov eax, dword [esi]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], eax
mov eax, edi
jae 0x40511b
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00427870
test eax, eax
jne 0x405160
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x405127
mov ecx, dword [esi]
cmp dword [esp + 0x2c], ecx
jb 0x4050f7
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
jne 0x405160
mov dword [esp + 4], 4
mov dword [esp], ebx
call fcn.00427870
cmp eax, 1
jne 0x405123
mov dword [esp], ebx
call fcn.00428d00
test eax, eax
jne 0x405160
mov edx, dword [esp + 0x2c]
cmp dword [esi], edx
jb 0x40516d
mov dword [esi], edx
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x5c
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xfffffffb
jmp 0x40511b

Function at 0x40a040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ecx, 0x81
mov ebp, esp
push edi
xor edi, edi
push ebx
sub esp, 0x230
movzx eax, word [0x4579c4]
mov word [ebp - 0x20e], di
lea edi, [ebp - 0x20c]
mov ebx, dword [ebp + 8]
mov word [ebp - 0x210], ax
xor eax, eax
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x210]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1a
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, ebx
sub esp, 0x14
mov dword [esp], edi
call fcn.00407ca0
mov eax, ebx
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret

Function at 0x40b710
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x38]
sub esp, 0x3c
mov ecx, ebx
call fcn.00405f90
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x28]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040a500
mov dword [esp], ebx
mov ecx, esi
call fcn.004063a0
sub esp, 4
mov ecx, esi
call fcn.00405e80
mov ecx, ebx
mov dword [esp], 0x5c
call fcn.00406820
mov eax, dword [ebp - 0x34]
sub esp, 4
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x34]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
sub esp, 4
mov ecx, ebx
call fcn.00405e80
test esi, esi
setne al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40ba70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2ac
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x40bc15
mov esi, dword [ebx + 4]
test esi, esi
je 0x40baaa
mov edi, dword [ebx + 0xc]
test edi, edi
jle 0x40baa3
mov eax, dword [esi]
mov ecx, esi
add esi, 0x10
call dword [eax]
sub edi, 1
jne 0x40ba95
mov dword [ebx + 0xc], 0
lea ecx, [ebp - 0x2a8]
call fcn.00405f90
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x298]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040a500
lea eax, [ebp - 0x2a8]
mov ecx, esi
mov dword [esp], eax
call fcn.004063a0
sub esp, 4
mov ecx, esi
call fcn.00405e80
lea ecx, [ebp - 0x2a8]
mov dword [esp], 0x5c
call fcn.00406820
sub esp, 4
lea esi, [ebp - 0x288]
lea eax, [ebp - 0x2a8]
mov dword [esp + 8], 0x457cfc
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00407f90
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x284]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
sub esp, 8
mov edi, eax
mov ecx, esi
mov dword [ebp - 0x2ac], eax
call fcn.00405e80
cmp edi, 0xffffffff
je 0x40bc1d
lea esi, [ebp - 0x278]
jmp 0x40bb93
add ecx, 0xfffffff
shl ecx, 4
add ecx, dword [ebx + 4]
mov dword [esp], esi
call fcn.00406000
sub esp, 4
mov ecx, esi
call fcn.00405e80
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2ac]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x40bbf8
test byte [ebp - 0x268], 0x10
jne 0x40bb73
lea eax, [ebp - 0x23c]
mov ecx, esi
mov dword [esp], eax
call fcn.00407ca0
mov edi, dword [ebx + 0xc]
sub esp, 4
mov ecx, ebx
lea eax, [edi + 1]
mov dword [esp], eax
call fcn.004440d0
sub esp, 4
shl edi, 4
add edi, dword [ebx + 4]
mov ecx, edi
je 0x40bbd1
call fcn.00405f90
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x40bb55
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0040f760
mov ecx, dword [ebx + 0xc]
jmp 0x40bb55
mov eax, dword [ebp - 0x2ac]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
lea ecx, [ebp - 0x2a8]
call fcn.00405e80
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebp - 0x2a8]
call fcn.00405e80
jmp 0x40bc15
Function at 0x40bc60
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2dc
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x40be64
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x40bca0
mov esi, dword [eax + 0xc]
test esi, esi
jle 0x40bc96
mov eax, dword [ebx]
mov ecx, ebx
add ebx, 0x10
call dword [eax]
sub esi, 1
jne 0x40bc88
mov eax, dword [ebp + 0xc]
mov dword [eax + 0xc], 0
lea ecx, [ebp - 0x2c8]
call fcn.00405f90
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0x2b8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040a500
lea eax, [ebp - 0x2c8]
mov ecx, ebx
mov dword [esp], eax
call fcn.004063a0
sub esp, 4
mov ecx, ebx
call fcn.00405e80
lea ecx, [ebp - 0x2c8]
mov dword [esp], 0x5c
call fcn.00406820
sub esp, 4
lea ebx, [ebp - 0x2a8]
lea eax, [ebp - 0x2c8]
mov dword [esp + 8], 0x457cfc
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00407f90
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2a4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
sub esp, 8
mov esi, eax
mov ecx, ebx
mov dword [ebp - 0x2cc], eax
call fcn.00405e80
cmp esi, 0xffffffff
je 0x40be59
lea esi, [ebp - 0x298]
mov ecx, esi
call fcn.00405f90
lea ebx, [ebp - 0x288]
jmp 0x40bd83
mov ecx, ebx
call fcn.00405e80
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x40be40
test byte [ebp - 0x268], 0x10
je 0x40bd5f
lea eax, [ebp - 0x23c]
mov ecx, esi
mov dword [esp], eax
call fcn.00407bf0
sub esp, 4
mov ecx, ebx
mov dword [esp], 0x457d02
call fcn.00407ca0
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004083a0
test al, al
je 0x40bd58
lea edi, [ebp - 0x278]
mov dword [esp], 0x457d06
mov ecx, edi
call fcn.00407ca0
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004083a0
mov ecx, edi
mov dword [ebp - 0x2d0], eax
call fcn.00405e80
mov ecx, ebx
call fcn.00405e80
mov eax, dword [ebp - 0x2d0]
test al, al
je 0x40bd5f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edi, dword [eax + 0xc]
lea eax, [edi + 1]
mov dword [esp], eax
call fcn.004440d0
mov eax, dword [ebp + 0xc]
sub esp, 4
shl edi, 4
add edi, dword [eax + 4]
mov ecx, edi
je 0x40bd5f
mov dword [esp], esi
call fcn.00407380
sub esp, 4
jmp 0x40bd5f
mov eax, dword [ebp - 0x2cc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
mov ecx, esi
call fcn.00405e80
lea ecx, [ebp - 0x2c8]
call fcn.00405e80
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40c2c0
Capabilities:
Enumerate files on windows

Disassembly:
cmp byte [esp + 0xc], 0
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
jne 0x40c2e0
mov dword [esp + 8], edx
mov dword [esp + 4], eax
jmp fcn.0040ba70
jmp fcn.0040bee0
Function at 0x40ce90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x48]
mov dword [esp], eax
call fcn.0040a500
lea eax, [ebp - 0x48]
mov dword [esp], eax
call fcn.0040b9a0
test al, al
mov ebx, eax
jne 0x40cf6e
call fcn.0040a480
mov dword [esp + 4], eax
lea eax, [ebp - 0x48]
mov dword [esp], eax
lea ecx, [ebp - 0x38]
call fcn.0040f3d0
mov eax, dword [ebp - 0x2c]
sub esp, 8
test eax, eax
je 0x40cf66
lea esi, [ebp - 0x28]
mov ecx, esi
call fcn.00405f90
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x34]
shl edi, 4
add edi, ebx
cmp ebx, edi
jne 0x40cf19
jmp 0x40cf52
add ebx, 0x10
call fcn.0040a480
mov dword [esp], eax
mov ecx, esi
call fcn.00406a20
sub esp, 4
cmp ebx, edi
je 0x40cf52
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x40cf00
mov dword [esp], ebx
mov ecx, esi
call fcn.00406a20
sub esp, 4
mov dword [esp], esi
call fcn.0040b9a0
test al, al
jne 0x40cf00
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
jmp 0x40cf00
lea eax, [ebp - 0x48]
mov dword [esp], eax
call fcn.0040b9a0
mov ecx, esi
mov ebx, eax
call fcn.00405e80
lea ecx, [ebp - 0x38]
call fcn.0040ee60
lea ecx, [ebp - 0x48]
call fcn.00405e80
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40d6a0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x38]
sub esp, 0x3c
mov ecx, ebx
call fcn.00405f90
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x28]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040a500
mov dword [esp], ebx
mov ecx, esi
call fcn.004063a0
sub esp, 4
mov ecx, esi
call fcn.00405e80
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x34]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
sub esp, 4
mov ecx, ebx
call fcn.00405e80
test esi, esi
setne al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x410aa0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
mov esi, ebp
push ebx
sub esp, 0x8c
lea edi, [esp + 0x28]
mov dword [esp + 8], edx
lea ebx, [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
call fcn.00410920
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.00410a10
movzx eax, byte [ebx]
add ebx, 1
mov dword [esp], esi
add esi, 2
mov dword [esp + 4], str._02x
mov dword [esp + 8], eax
call fcn.004108c0
cmp ebx, edi
jne 0x410b02
mov byte [ebp + 0x20], 0
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x410c50
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
test edx, edx
je 0x410c6b
cmp dword [ebx + 0xc], 0x10
je 0x410c73
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x410d7a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp], eax
call fcn.004093f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0xc]
sub esp, 4
mov dword [esp + 4], 0x2d
mov dword [ebp - 0x34], eax
neg dword [ebp - 0x34]
and dword [ebp - 0x34], 7
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call fcn.00408d90
mov eax, dword [ebx + 4]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebx + 0xc]
sub esp, 8
mov eax, dword [eax + 4]
add esi, eax
cmp eax, esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], esi
je 0x410d54
lea esi, [esi]
mov eax, dword [ebp - 0x28]
xor ebx, ebx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], esi
mov esi, dword [eax + 8]
mov dword [ebp - 0x24], esi
mov esi, dword [eax + 0xc]
mov eax, edx
mov edi, edx
shl eax, 4
sub ebx, 0x61c88647
add eax, dword [ebp - 0x1c]
shr edi, 5
add edi, dword [ebp - 0x20]
xor eax, edi
lea edi, [edx + ebx]
xor eax, edi
add ecx, eax
mov eax, ecx
mov edi, ecx
shl eax, 4
add eax, dword [ebp - 0x24]
shr edi, 5
add edi, esi
xor eax, edi
lea edi, [ecx + ebx]
xor eax, edi
add edx, eax
cmp ebx, 0xe3779b90
jne 0x410d01
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x28], 8
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x30]
jne 0x410ce0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 8]
mov dword [esp], 1
mov dword [esp + 4], eax
call fcn.00408d90
mov eax, 1
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp + 8]
call fcn.00408bc0
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x410d90
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
test esi, esi
je 0x410dab
cmp dword [ebx + 0xc], 0x10
je 0x410db3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x410f04
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp], eax
call fcn.004093f0
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0xc]
sub esp, 4
mov eax, esi
sub eax, 1
js 0x410ee7
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
movzx edx, byte [edx + esi - 1]
mov dword [esp], eax
mov dword [esp + 4], 0
mov byte [ebp - 0x35], dl
call fcn.00408de0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
sub esp, 8
test al, 7
mov dword [ebp - 0x34], eax
jne 0x410ed5
mov eax, dword [ebx + 4]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
add esi, eax
cmp eax, esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], esi
je 0x410ea1
mov eax, dword [ebp - 0x28]
mov ebx, 0xe3779b90
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], esi
mov esi, dword [eax + 8]
mov dword [ebp - 0x24], esi
mov esi, dword [eax + 0xc]
mov eax, ecx
mov edi, ecx
shl eax, 4
add eax, dword [ebp - 0x24]
shr edi, 5
add edi, esi
xor eax, edi
lea edi, [ebx + ecx]
xor eax, edi
sub edx, eax
mov eax, edx
mov edi, edx
shl eax, 4
shr edi, 5
add eax, dword [ebp - 0x1c]
add edi, dword [ebp - 0x20]
xor eax, edi
lea edi, [edx + ebx]
xor eax, edi
sub ecx, eax
add ebx, 0x61c88647
jne 0x410e54
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x28], 8
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x30]
jne 0x410e30
movsx eax, byte [ebp - 0x35]
cmp dword [ebp - 0x34], eax
jl 0x410ed5
cmp byte [ebp - 0x35], 0
js 0x410ed5
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp + 8]
mov dword [esp + 4], 0
sub esi, eax
mov dword [esp], esi
call fcn.00408de0
mov eax, 1
sub esp, 8
jmp 0x410dab
mov ecx, dword [ebp + 8]
call fcn.00408bc0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.00409910
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
sub eax, 1
jmp 0x410de3
mov ecx, dword [ebp + 8]
call fcn.00408bc0
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x414440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
mov eax, dword [ecx]
call dword [eax + 0x20]
test al, al
je 0x414476
mov esi, dword [ebp + 8]
test esi, esi
je 0x414476
mov ecx, dword [ebp + 0xc]
test ecx, ecx
js 0x414476
mov eax, dword [ebx + 4]
mov ecx, ebx
mov edi, dword [eax + 0x1c]
mov esi, dword [eax + 0x18]
mov eax, dword [ebx]
call dword [eax + 0x28]
cmp edi, edx
jle 0x414484
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 8
jl 0x41448a
cmp esi, eax
ja 0x414476
mov eax, dword [ebx + 4]
mov ecx, ebx
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004141a0
sub esp, 8
test al, al
mov esi, eax
je 0x414476
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x28]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x18]
sub dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], edx
mov edx, dword [ecx + 0x1c]
sbb dword [ebp - 0x2c], edx
mov edi, dword [ebp - 0x30]
cdq
mov eax, dword [ebp - 0x2c]
cmp eax, edx
jl 0x4144de
jg 0x4144db
cmp edi, dword [ebp + 0xc]
jbe 0x4144de
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.00408de0
sub esp, 8
test edi, edi
je 0x414478
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
mov edi, dword [eax + 0xc]
test edi, edi
jle 0x41456b
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x414476
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00408de0
mov ecx, dword [ebx + 4]
xor edx, edx
mov eax, dword [ebp - 0x1c]
sub esp, 8
add dword [ecx + 0x18], eax
adc dword [ecx + 0x1c], edx
jmp 0x414478
mov dword [esp + 4], edi
mov dword [esp], 0
call fcn.00409910
jmp 0x414509

Function at 0x4149c0
Capabilities:
Write file on windows

Disassembly:
push ebp
add ecx, 4
mov ebp, esp
leave
jmp fcn.00414220

Function at 0x421c10
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x4514c4], eax
je 0x421c27
add esp, 0xc
ret
call sub.msvcrt.dll_abort
lea esi, [esi]