joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401890
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x208
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push 0x4061c0
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
push 0x4061a8
push ecx
stosb byte es:[edi], al
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_WinExec]
add esp, 0xc
lea edx, [esp + 0xc]
push 0
push edx
call ebp
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
push 0x40618c
rep stosd dword es:[edi], eax
lea eax, [esp + 0x114]
lea ecx, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x406118
push edx
call esi
add esp, 0x14
lea eax, [esp + 0xc]
push 0
push eax
call ebp
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x110]
push ecx
push 0x4060f4
push edx
call esi
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
call ebp
pop edi
pop esi
pop ebp
add esp, 0x208
ret
Function at 0x401077
Capabilities:
Print debug messages

Disassembly:
push esi
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
mov esi, section..data
push esi
call dword [sym.imp.USER32.dll_wvsprintfA]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x200010
push str.Loader
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
ret

Function at 0x401108
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
push ebx
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x2e4]
xor edi, edi
push eax
xor ebx, ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x401284
cmp eax, esi
jae 0x40128a
cmp word [ebp - 0x2e4], di
lea eax, [ebp - 0x2e4]
je 0x40115a
inc eax
inc eax
cmp word [eax], di
jne 0x401153
lea ecx, [ebp - 0x9e]
push ecx
mov edx, str._version.dll
call fcn.0040103a
push 8
push edi
lea eax, [ebp - 0x2e4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
je 0x401284
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetFileVersionInfoW
push ebx
call esi
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x401284
push str.GetFileVersionInfoSizeW
push ebx
call esi
mov edi, eax
test edi, edi
je 0x401284
push str.VerQueryValueW
push ebx
call esi
mov esi, eax
test esi, esi
je 0x401284
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call edi
mov ecx, eax
test ecx, ecx
mov dword [ebp - 4], ecx
je 0x40128a
call fcn.004018a6
test eax, eax
mov dword [ebp - 8], eax
je 0x40128a
push eax
push dword [ebp - 4]
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [ebp - 0x1c]
test eax, eax
je 0x40128a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 8]
call esi
test eax, eax
je 0x40128a
cmp dword [ebp - 4], 4
jb 0x40128a
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x9c]
push str.StringFileInfo_04x_04xArguments
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 8]
call esi
test eax, eax
je 0x40128a
cmp dword [ebp - 0xc], 0
je 0x40128a
mov eax, dword [ebp - 4]
test eax, eax
je 0x40128a
lea ecx, [eax + eax + 2]
call fcn.004018a6
push dword [ebp - 4]
mov esi, eax
push dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [ebp - 4]
and word [esi + eax*2], 0
jmp 0x40128a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
call fcn.004018b7
test ebx, ebx
je 0x40129d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4012a7
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4012d4
xor eax, eax
jmp 0x401458
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10000
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
jae 0x4012f0
dec ecx
mov dword [ebp - 8], ecx
push ebx
push esi
push edi
push edi
push edi
lea esi, [eax - 0x10000]
push 2
push edi
push dword [ebp + 8]
and esi, 0xffff0000
sub eax, esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], eax
call edi
cmp dword [ebp - 4], 0
je 0x401343
push ebx
push esi
push dword [ebp - 8]
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp - 4]
mov esi, eax
mov dword [ebp + 8], esi
call edi
test esi, esi
jne 0x40134a
xor eax, eax
jmp 0x401456
lea ecx, [esi + ebx]
push 0x7c
lea eax, [ecx - 2]
pop edx
xor ebx, ebx
cmp byte [eax], dl
lea esi, [ecx - 4]
jne 0x4013f4
cmp byte [eax + 1], 0x3e
jne 0x4013f4
mov edi, dword [ebp + 8]
add edi, 2
cmp eax, edi
mov esi, eax
jbe 0x40144b
lea ecx, [esi - 1]
cmp byte [ecx], dl
jne 0x401387
cmp byte [esi - 2], 0x3c
je 0x401392
mov esi, ecx
cmp esi, edi
ja 0x40137a
jmp 0x40144b
sub eax, esi
mov edi, eax
mov eax, dword [ebp + 8]
add eax, 5
cmp esi, eax
jbe 0x4013d5
cmp byte [esi - 5], 0xef
jne 0x4013d5
cmp byte [esi - 4], 0xbb
jne 0x4013d5
cmp byte [esi - 3], 0xbf
jne 0x4013d5
lea ecx, [edi + edi + 2]
call fcn.004018a6
push edi
mov ebx, eax
push ebx
push edi
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
and word [ebx + eax*2], 0
jmp 0x40144b
lea ecx, [edi + edi + 2]
call fcn.004018a6
push edi
mov ebx, eax
push ebx
push edi
push esi
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [ebx + eax*2], si
jmp 0x40144b
cmp word [esi], dx
jne 0x40144b
cmp word [esi + 2], 0x3e
jne 0x40144b
mov edi, dword [ebp + 8]
add edi, 4
cmp esi, edi
mov ecx, esi
mov dword [ebp - 4], ecx
jbe 0x40144b
jmp 0x401414
mov ecx, dword [ebp - 4]
lea eax, [ecx - 2]
cmp word [eax], dx
jne 0x401423
cmp word [ecx - 4], 0x3c
je 0x40142c
cmp eax, edi
mov dword [ebp - 4], eax
ja 0x401411
jmp 0x40144b
mov eax, esi
sub eax, ecx
sar eax, 1
lea edi, [eax + eax]
lea ecx, [edi + 2]
call fcn.004018a6
mov ecx, dword [ebp - 4]
mov ebx, eax
add edi, ebx
push edi
push esi
call fcn.00401058
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, ebx
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x40145d
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00401108
test eax, eax
push 2
mov dword [ebp - 4], eax
pop esi
jne 0x401486
mov ecx, esi
call fcn.004018a6
and word [eax], 0
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.004012a7
mov ebx, eax
test ebx, ebx
mov dword [ebp + 8], ebx
jne 0x4014a7
mov ecx, esi
call fcn.004018a6
mov ebx, eax
and word [ebx], 0
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
movzx ecx, word [edi]
cmp cx, 0x27
mov dword [ebp - 8], edi
je 0x4014ce
cmp cx, 0x22
jne 0x4014e8
jmp 0x4014ce
cmp ax, cx
jne 0x4014ce
cmp word [edi + 2], cx
jne 0x4014e6
add edi, esi
movzx eax, word [edi]
test ax, ax
jne 0x4014c3
jmp 0x4014e8
cmp ax, 0x20
je 0x401500
cmp ax, 9
je 0x401500
add edi, esi
movzx eax, word [edi]
test ax, ax
jne 0x4014da
jmp 0x401500
cmp ax, 0x20
je 0x4014fe
cmp ax, 9
jne 0x401508
add edi, esi
movzx eax, word [edi]
test ax, ax
jne 0x4014f2
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
push ebx
mov dword [ebp - 0xc], eax
call esi
mov ecx, dword [ebp - 0xc]
push dword [ebp - 4]
lea ebx, [ecx + eax]
call esi
mov ecx, dword [ebp + 0xc]
add eax, ebx
lea eax, [eax + ecx + 0x20]
lea esi, [eax + eax]
mov ecx, esi
call fcn.004018a6
mov ecx, dword [ebp - 8]
mov ebx, eax
lea esi, [esi + ebx - 2]
push esi
push edi
call fcn.00401058
mov edx, dword [ebp - 4]
mov word [eax], 0x20
push esi
add eax, 2
call fcn.0040103a
mov edx, dword [ebp + 8]
mov word [eax], 0x20
push esi
add eax, 2
call fcn.0040103a
mov word [eax], 0x20
push esi
add eax, 2
mov edx, edi
call fcn.0040103a
mov ecx, dword [ebp - 4]
call fcn.004018b7
mov ecx, dword [ebp + 8]
call fcn.004018b7
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x40190a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 4]
push edi
mov edi, dword [esi + 0x10]
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
jmp 0x40193d
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [esi + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401946
mov eax, dword [ebp - 4]
test eax, eax
je 0x40194e
add dword [esi + 0xc], eax
sub edi, eax
jne 0x40191d
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401943
mov eax, dword [esi + 0xc]
cmp dword [esi + 4], eax
sbb eax, eax
and eax, 0xffffffda
add eax, 0x26
jmp 0x401943
Function at 0x4032f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0x18]
add edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [eax + edx*8]
mov dword [ebp - 8], ecx
push edi
xor eax, dword [esi]
mov dword [esi], eax
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x18]
mov eax, dword [eax + edx*8 + 4]
xor eax, dword [esi + 4]
mov dword [esi + 4], eax
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x18]
mov ebx, dword [eax + edx*8 + 8]
xor ebx, dword [esi + 8]
mov dword [esi + 8], ebx
mov eax, dword [ecx + 0x18]
mov ecx, dword [eax + edx*8 + 0xc]
mov eax, dword [ebp + 8]
movzx eax, al
xor ecx, dword [esi + 0xc]
mov edx, dword [ebp - 4]
movzx eax, byte [eax + 0x8fc890]
mov byte [ebp - 0x18], al
mov eax, ecx
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x8fc890]
mov byte [ebp - 0x17], al
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x8fc890]
mov byte [ebp - 0x16], al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x8fc890]
mov byte [ebp - 0x15], al
movzx eax, dl
movzx eax, byte [eax + 0x8fc890]
mov byte [ebp - 0x14], al
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x8fc890]
mov byte [ebp - 0x13], al
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x8fc890]
mov byte [ebp - 0x12], al
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x8fc890]
mov byte [ebp - 0x11], al
movzx eax, bl
movzx eax, byte [eax + 0x8fc890]
mov byte [ebp - 0x10], al
mov eax, edx
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x8fc890]
mov byte [ebp - 0xf], al
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x8fc890]
mov byte [ebp - 0xe], al
mov eax, ecx
shr eax, 0x18
shr ebx, 8
movzx eax, byte [eax + 0x8fc890]
mov byte [ebp - 0xd], al
movzx eax, cl
movzx eax, byte [eax + 0x8fc890]
mov byte [ebp - 0xc], al
movzx eax, bl
mov ebx, dword [ebp - 8]
shr edx, 0x10
movzx eax, byte [eax + 0x8fc890]
mov byte [ebp - 0xb], al
movzx eax, dl
movzx eax, byte [eax + 0x8fc890]
mov byte [ebp - 0xa], al
mov eax, dword [ebp + 8]
shr eax, 0x18
movzx eax, byte [eax + 0x8fc890]
mov byte [ebp - 9], al
movups xmm0, xmmword [ebp - 0x18]
movups xmmword [esi], xmm0
mov edi, dword [ebx + 8]
dec edi
mov dword [ebp + 8], edi
test edi, edi
jle 0x40348f
shl edi, 4
mov eax, dword [ebx + 0x18]
push esi
mov eax, dword [edi + eax]
xor dword [esi], eax
mov eax, dword [ebx + 0x18]
mov eax, dword [edi + eax + 4]
xor dword [esi + 4], eax
mov eax, dword [ebx + 0x18]
mov eax, dword [edi + eax + 8]
xor dword [esi + 8], eax
mov eax, dword [ebx + 0x18]
mov eax, dword [edi + eax + 0xc]
xor dword [esi + 0xc], eax
call fcn.004034c0
mov eax, dword [ebp + 8]
lea edi, [edi - 0x10]
dec eax
mov dword [ebp + 8], eax
test eax, eax
jg 0x403455
mov eax, dword [ebx + 0x18]
pop edi
mov eax, dword [eax]
xor dword [esi], eax
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 4]
xor dword [esi + 4], eax
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 8]
xor dword [esi + 8], eax
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0xc]
xor dword [esi + 0xc], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404a60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x821850
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x93cf44]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.00404a20
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov word [esi + 0xc], 0
push dword [ecx]
lea ecx, [esi + 0x10]
call fcn.00405e20
mov dword [esi + 0x28], 0
mov eax, esi
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x408600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x93cf44]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x4086a3
cmp byte [esi + 0x3d], 0
je 0x4086a3
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x408659
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x40866b
sub eax, 1
je 0x40866f
sub eax, 2
je 0x4086a3
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c3e3a
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40868c
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.006d9745
add esp, 0x10
cmp edi, eax
jne 0x408659
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c3e3a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.005c3e3a
mov esp, ebp
pop ebp
ret
Function at 0x4098f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
push ebx
mov dword [ebp - 0x10], eax
push esi
mov eax, dword [eax]
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov ebx, dword [eax]
add eax, 8
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
lea esi, [eax + 1]
push esi
call fcn.00492962
push esi
mov esi, eax
mov dword [ebp + 8], eax
push 0
push esi
call fcn.006d0040
mov eax, dword [edi + 0x10]
add esp, 0x10
cmp dword [edi + 0x14], 0x10
jb 0x40993c
mov edi, dword [edi]
push eax
push edi
push esi
call fcn.006cfac0
xor edi, edi
add esp, 0xc
cmp dword [ebp - 0xc], edi
jle 0x409998
nop
mov eax, dword [ebp - 4]
inc bl
mov esi, dword [ebp - 4]
movzx ebx, bl
mov ecx, dword [eax + ebx*4]
mov eax, dword [ebp - 8]
add eax, ecx
movzx edx, al
mov eax, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [eax + edx*4]
mov dword [esi + ebx*4], eax
mov dword [esi + edx*4], ecx
add cl, al
movzx eax, cl
mov ecx, esi
mov esi, dword [ebp + 8]
movzx eax, byte [ecx + eax*4]
xor byte [edi + esi], al
mov al, byte [edi + esi]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.004055b0
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x409950
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
push esi
mov eax, dword [ecx]
mov dword [eax], ebx
mov eax, dword [ecx]
mov dword [eax + 4], edx
call fcn.00426510
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40bba0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x821ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x93cf44]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
mov dword [ebp - 0x18], 0
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x8fe984
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.0040d7a0
mov eax, dword [ebp + 8]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 1
mov ebx, dword [eax + 4]
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 2
push eax
call fcn.0040c760
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x30]
mov ecx, eax
call edx
movzx eax, ax
mov dword [ebp + 8], eax
mov dword [ebp - 4], 3
test ebx, ebx
je 0x40bc73
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
test eax, eax
je 0x40bc70
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0
cmp dword [esi + 0x38], 0
mov word [esi + 0x40], ax
jne 0x40bc91
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.00406810
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4128c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4128cb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x412987
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8fcb40]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8fcb40]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8fcb40]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8fcb40]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8fcb40]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8fcb40]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8fcb40]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8fcb40]
sub edi, 1
jne 0x4128e0
pop edi
test esi, esi
je 0x4129aa
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8fcb40]
sub esi, 1
jne 0x412990
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x413fa0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x41415c
cmp dword [edi + 0x18], 0
je 0x41415c
cmp dword [edi + 0x7c], 0
je 0x413fc9
call fcn.00414450
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
call fcn.00413d30
add esp, 8
test eax, eax
je 0x413fed
pop edi
mov eax, 0xffffff99
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x84
call fcn.006d979d
mov esi, eax
add esp, 4
test esi, esi
je 0x414030
push 0x4000
call fcn.006d979d
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x41403c
push esi
call fcn.006d9280
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x40], 0
mov ecx, dword [edi + 0x34]
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], 0
mov eax, dword [edi + 0x34]
mov dword [esi + 0x64], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x414097
lea ecx, [esi + 4]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.00412c00
test eax, eax
jne 0x414097
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x4140ba
mov al, byte [edi + 0x39]
jmp 0x4140bd
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov ecx, 0xc
xor eax, eax
cmp byte [esi + 0x6c], al
cmovne eax, ecx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x70], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebx, ebx
je 0x41413d
nop dword [eax]
mov al, byte [ebx]
test al, al
je 0x41413d
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x8fcb40]
xor eax, ecx
mov ecx, dword [esi + 0x78]
mov dword [esi + 0x70], eax
movzx eax, al
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8fcb40]
mov dword [esi + 0x78], ecx
add ebx, 1
jne 0x4140f0
mov eax, dword [ebp - 0xc]
add eax, 0x1e
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xffffff9a
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41bbb0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x181dbec]
mov ecx, edx
mov dword [ebp - 0x18], ecx
cmp dword [eax + 0x6b4], 0
je 0x41bbed
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push dword [ebp + 8]
push ecx
push 0x80000001
call dword [0x83d688]
mov ecx, eax
xor eax, eax
test ecx, ecx
sete al
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
movzx ebx, word [eax + 0x2c]
xor esi, esi
mov ecx, dword [eax + 0x30]
xor edi, edi
shr ebx, 1
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x811c9dc5
lea edx, [ecx + ebx*2]
cmp ecx, edx
cmova ebx, esi
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x41bc56
mov eax, ebx
mov bl, byte [ecx]
lea ecx, [ecx + 2]
movsx esi, bl
sub bl, 0x41
mov edx, esi
or edx, 0x20
cmp bl, 0x19
cmova edx, esi
inc edi
xor edx, dword [ebp - 4]
imul edx, edx, 0x1000193
mov dword [ebp - 4], edx
cmp edi, eax
jne 0x41bc24
mov eax, dword [ebp - 8]
cmp edx, 0x8ec4c73b
je 0x41bc5a
mov eax, dword [eax]
jmp 0x41bbfc
mov ebx, dword [eax + 0x18]
mov eax, dword [0x181dff8]
mov dword [ebp - 8], ebx
test eax, eax
jne 0x41bd1c
test ebx, ebx
je 0x41bd15
mov eax, dword [ebx + 0x3c]
mov edx, dword [eax + ebx + 0x78]
mov eax, dword [eax + ebx + 0x7c]
add edx, ebx
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x10], edx
cmp edx, ebx
je 0x41bd17
mov ecx, dword [edx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x41bd15
mov edi, dword [edx + 0x20]
add edi, ebx
mov edx, dword [edi]
mov esi, 0x811c9dc5
add edx, ebx
mov bl, byte [edx]
inc edx
test bl, bl
je 0x41bce5
movsx ecx, bl
lea edx, [edx + 1]
sub bl, 0x41
mov eax, ecx
or eax, 0x20
cmp bl, 0x19
mov bl, byte [edx - 1]
cmova eax, ecx
xor eax, esi
imul esi, eax, 0x1000193
test bl, bl
jne 0x41bcb4
cmp esi, 0xf0dcc1d0
je 0x41bcf5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
inc eax
add edi, 4
mov dword [ebp - 4], eax
cmp eax, ecx
je 0x41bd15
mov ebx, dword [ebp - 8]
jmp 0x41bca4
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x41bd17
xor eax, eax
mov dword [0x181dff8], eax
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push dword [ebp + 8]
push dword [ebp - 0x18]
push 0x80000001
call eax
mov ecx, eax
xor eax, eax
pop edi
test ecx, ecx
pop esi
pop ebx
sete al
mov esp, ebp
pop ebp
ret