joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403181
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4031a1
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x4031b0
mov ebx, 0x418ea0
mov eax, dword [ebp + 8]
or eax, eax
jl 0x4031c5
mov ecx, dword [0x42a278]
add ecx, eax
push ecx
call fcn.0040337c
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403366
or eax, eax
je 0x40331d
test byte [ebp + 0x17], 0x80
je 0x403306
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40ce10
mov dword [ebp - 0xc], eax
call fcn.00406834
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40335c
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403215
mov esi, dword [ebp + 0x14]
mov edi, 0x414ea0
push esi
push edi
call fcn.00403366
test eax, eax
je 0x40331d
sub dword [ebp + 0x14], esi
mov dword [0x40ce28], edi
mov dword [0x40ce2c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40ce10
mov dword [0x40ce30], ebx
mov dword [0x40ce34], eax
call fcn.00406854
or eax, eax
mov dword [ebp - 0x10], eax
jl 0x4032fe
mov esi, dword [0x40ce30]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x42a2d4], 1
mov edi, eax
je 0x4032bd
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403284
cmp dword [ebp + 0x14], 0
jne 0x4032bd
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x90]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push 0
call fcn.00405361
mov dword [ebp - 0xc], edi
or esi, esi
je 0x4032f2
cmp dword [ebp + 0x10], 0
jne 0x4032da
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00405ea1
test eax, eax
je 0x403302
add dword [ebp - 4], esi
jmp 0x4032e6
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40ce30]
cmp dword [ebp - 0x10], 1
jne 0x403238
jmp 0x40335c
cmp dword [ebp + 0x14], 0
jg 0x403208
jmp 0x40335c
push 0xfffffffffffffffc
jmp 0x40331f
push 0xfffffffffffffffe
jmp 0x40331f
test edi, edi
je 0x403351
cmp dword [ebp + 0x14], esi
jge 0x403312
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403366
test eax, eax
jne 0x403359
push 0xfffffffffffffffd
pop eax
jmp 0x40335f
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40332d
mov esi, dword [ebp + 0x14]
mov edi, 0x414ea0
push esi
push edi
call fcn.00403366
test eax, eax
je 0x40331d
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405ea1
test eax, eax
je 0x403302
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403322
jmp 0x40335c
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405830
Capabilities:
Create directory

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405881
xor eax, eax
jmp 0x4058a8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4058a8
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40587d
call esi
pop esi
leave
ret 4

Function at 0x4058e2
Capabilities:
Create process on windows

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4266f0], 0x44
push eax
sub eax, eax
push 0x4266f0
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
or eax, eax
je 0x405921
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405925
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x4059c3
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405dca
push eax
pop edi
cmp edi, 0xffffffff
je 0x405a04
test byte [esp + 0x10], 1
push esi
je 0x4059e6
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4059ec
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4059f5
xor eax, eax
inc eax
jmp 0x405a06
test byte [esp + 0x10], 4
jne 0x405a04
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405a0b
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push ebx
pop eax
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405cd6
test bl, 8
mov dword [ebp - 8], eax
je 0x405a4a
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a2a8], eax
jmp 0x405bc7
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a64
or eax, eax
je 0x405b75
test bl, 2
je 0x405b75
mov esi, 0x4256f0
push edi
push esi
call fcn.004062f9
cmp dword [ebp + 8], 0
je 0x405a83
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405a89
push edi
call fcn.00405c1a
cmp word [edi], 0
jne 0x405a99
cmp word [0x4256f0], 0x5c
jne 0x405aa4
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b6a
cmp word [ebp - 0x22c], 0x2e
jne 0x405aee
cmp word [ebp - 0x22a], 0
je 0x405b4d
cmp word [ebp - 0x22a], 0x2e
jne 0x405aee
cmp word [ebp - 0x228], 0
je 0x405b4d
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004062f9
test byte [ebp - 0x258], 0x10
je 0x405b19
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b4d
push dword [ebp + 0xc]
push edi
call fcn.00405a0b
jmp 0x405b4d
push dword [ebp - 4]
push edi
call fcn.004059c3
or eax, eax
jne 0x405b45
cmp dword [ebp - 4], eax
je 0x405b3d
push edi
push 0xfffffffffffffff1
call fcn.00405361
push 0
push edi
call fcn.004060bf
jmp 0x405b4d
inc dword [0x42a2a8]
jmp 0x405b4d
push edi
push 0xfffffffffffffff2
call fcn.00405361
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405ac6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b75
and word [ebx - 2], 0
sub esi, esi
cmp dword [ebp + 8], esi
je 0x405bc7
cmp dword [ebp - 8], esi
jne 0x405b89
inc dword [0x42a2a8]
jmp 0x405bc7
push edi
call fcn.0040663c
or eax, eax
je 0x405bc7
push edi
call fcn.00405bce
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004059c3
test eax, eax
jne 0x405bbf
cmp dword [ebp - 4], esi
je 0x405b81
push edi
push 0xfffffffffffffff1
call fcn.00405361
push esi
push edi
call fcn.004060bf
jmp 0x405bc7
push edi
push 0xffffffffffffffe5
call fcn.00405361
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405cd6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425ef0
push esi
call fcn.004062f9
push esi
call fcn.00405c79
push eax
pop edi
or edi, edi
jne 0x405cf7
sub eax, eax
jmp 0x405d4f
push edi
call fcn.0040658d
test byte [0x42a21c], 0x80
je 0x405d14
mov ax, word [edi]
test ax, ax
je 0x405cf3
cmp ax, 0x5c
je 0x405cf3
sub edi, esi
sar edi, 1
jmp 0x405d2e
call fcn.0040663c
or eax, eax
je 0x405d28
test byte [eax], 0x10
je 0x405cf3
push esi
call fcn.00405c1a
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d1a
call fcn.00405bce
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dca
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
pop esi
cmp esi, 0xffffffff
je 0x405de9
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405def
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
pop ecx
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405e1e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a558]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a55c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405e6e
test edi, edi
jne 0x405e2b
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405e68
Function at 0x405f45
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
or esi, esi
mov dword [0x426d88], 0x55004e
mov dword [0x426d8c], 0x4c
mov edi, 0x400
mov ebp, 0x426d88
je 0x405f9b
push 1
push 0
push esi
call fcn.00405def
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4060ba
cmp eax, edi
jg 0x4060ba
mov esi, 0x427588
push edi
push esi
push dword [esp + 0x1c]
call ebx
or eax, eax
je 0x4060ba
cmp eax, edi
jg 0x4060ba
push esi
push ebp
push str._ls_ls_r_n
push 0x426988
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42a214]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040631b
push 4
push 0xc0000000
push esi
call fcn.00405def
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4060ba
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4060b3
push edi
push esi
push ebp
call fcn.00405e72
test eax, eax
je 0x4060b3
push str._Rename__r_n
push esi
call fcn.00405d54
test eax, eax
jne 0x406051
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406086
add eax, 0xa
push 0x40a560
push eax
call fcn.00405d54
push eax
pop ebp
or ebp, ebp
je 0x406082
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406073
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40606d
sub ebp, esi
inc ebp
push ebp
pop eax
mov ebp, dword [esp + 0x18]
jmp 0x406088
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x426988
push eax
call fcn.00405daa
sub eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405ea1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4060bf
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4060e2
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405f45
pop ecx
pop ecx
inc dword [0x42a2b0]
ret 8
Function at 0x4061c7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push esp
pop ebp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406166
mov esi, dword [ebp + 0x14]
or eax, eax
jne 0x406237
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
or edi, edi
pop edi
jne 0x406237
cmp dword [ebp + 0xc], 1
je 0x40623b
cmp dword [ebp + 0xc], 2
je 0x40623b
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406663
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406687
xor eax, eax
or eax, eax
je 0x40669a
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40669a
xor ecx, ecx
jmp 0x40669d
sub ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4067c6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427d8c], 0
push esi
jne 0x4067fd
sub ecx, ecx
push 8
push ecx
pop eax
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4067d7
mov dword [ecx*4 + 0x427d88], eax
inc ecx
cmp ecx, 0x100
jl 0x4067d2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
or edx, edx
not eax
jbe 0x40682e
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
push eax
pop esi
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427d88]
xor eax, esi
inc ecx
dec edx
jne 0x406810
pop edi
not eax
pop esi
ret 0xc
Function at 0x1123800
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x114f094]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.01136830
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x11238cf
mov eax, 0x114aff0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1123845
sub eax, edx
sar eax, 1
je 0x11238cf
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [fcn.01147130]
push 0x114aff0
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0113523b
push 0x114afe4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.01134bb2
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x11238cf
push eax
push 1
push 0x200
push esi
call fcn.01135558
mov eax, dword [esp + 0x14]
push eax
call fcn.01134e60
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.01134936
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.01134936
add esp, 0x214
ret

Function at 0x11238f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x114f094]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.01136830
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x11239f5
mov eax, 0x114b00c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1123935
sub eax, edx
sar eax, 1
je 0x11239f5
cmp dword [0x1172068], 3
jne 0x112397c
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [0x114712c]
push 0x114afec
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0113523b
add esp, 0xc
jmp 0x112398c
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [fcn.01147130]
push 0x114b00c
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.0113523b
push 0x114afe4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.01134bb2
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x11239f5
push eax
push 1
push 0x200
push esi
call fcn.01135558
mov edx, dword [esp + 0x14]
push edx
call fcn.01134e60
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.01134936
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.01134936
add esp, 0x214
ret
Function at 0x11270b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
xor ebp, ebp
push esi
mov ebx, ecx
push edi
mov edi, eax
mov dword [esp + 0x10], ebp
cmp ebx, ebp
je 0x11271a1
cmp edi, 0xa
jb 0x11271a1
lea eax, [edi*4]
mov dword [esp + 0x14], eax
inc eax
push eax
call fcn.01134994
add esp, 4
mov esi, eax
push esi
push ebx
lea edx, [esp + 0x1c]
mov ecx, edi
call fcn.01126f30
add esp, 8
test eax, eax
je 0x112719a
mov eax, dword [esp + 0x1c]
push 0x114aa4c
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.01134bb2
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x1127125
lea ebp, [eax - 2]
jmp 0x1127150
mov edi, dword [esp + 0x14]
push eax
push edi
push 1
push esi
call fcn.01134d67
add esp, 0x10
cmp eax, edi
je 0x1127167
mov ebp, 0xfffffffe
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1127150
push eax
call fcn.01134e60
add esp, 4
test esi, esi
je 0x112715d
push esi
call fcn.01134a5e
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [0x1147138]
call edi
xor edx, edx
mov ecx, 0x1f4
div ecx
mov ebx, edx
call edi
xor edx, edx
mov ecx, 0x3e8
div ecx
mov eax, dword [esp + 0x10]
push eax
push ebx
push 1
add edx, esi
push edx
call fcn.01134d67
add esp, 0x10
jmp 0x112713f
mov ebp, 0xfffffffd
jmp 0x112713f
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret

Function at 0x1128f20
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
jne 0x1128f27
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x1129004
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x114cb90]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x114cb90]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x114cb90]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x114cb90]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x114cb90]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x114cb90]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x114cb90]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x114cb90]
inc ecx
sub edx, 8
sub esi, 1
jne 0x1128f40
pop edi
test edx, edx
je 0x112902b
jmp 0x1129010
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x114cb90]
inc ecx
sub edx, 1
jne 0x1129010
not eax
pop esi
ret

Function at 0x1129030
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x114cb90]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x114cb90]
mov dword [edx + 8], ecx
ret
Function at 0x1129080
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x114cb90]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x114cb90]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x112a480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x112a49e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x112a492
cmp dword [edi + 0x7c], ebx
je 0x112a4ad
call fcn.0112a860
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0112a1f0
add esp, 0xc
test eax, eax
je 0x112a4d4
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x7e
call fcn.01134994
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x112a512
push 0x4000
call fcn.01134994
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x112a51f
push esi
call fcn.01134a5e
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x112a567
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.01129340
test eax, eax
jne 0x112a567
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x112a58e
mov cl, byte [edi + 0x39]
mov byte [esi + 0x7d], cl
jmp 0x112a594
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x7d], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x6d]
mov dword [esi + 0x79], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x71], 0x23456789
mov dword [esi + 0x75], 0x34567890
cmp ebp, ebx
je 0x112a5d1
lea ecx, [ecx]
mov cl, byte [ebp]
cmp cl, bl
je 0x112a5d1
call fcn.01129030
add ebp, 1
jne 0x112a5c0
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret