joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001bdc
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.01001beb
jmp fcn.01001b4b

Function at 0x40ee16
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
or ebx, 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], ebx
call dword [0x4101b0]
mov esi, eax
cmp dword [ebp - 4], esi
je 0x40ee58
lea ecx, [ebp - 4]
call fcn.0040ac79
mov dword [ebp - 4], esi
push edi
push edi
push edi
push 2
push edi
push dword [ebp - 4]
call dword [0x410134]
mov esi, eax
cmp dword [ebp - 8], esi
je 0x40ee79
lea ecx, [ebp - 8]
call fcn.0040501e
mov dword [ebp - 8], esi
cmp dword [ebp - 8], edi
jne 0x40ee9d
cmp dword [ebp - 4], ebx
je 0x40ef4c
push dword [ebp - 4]
mov esi, dword [0x41019c]
call esi
cmp dword [ebp - 8], edi
mov dword [ebp - 4], ebx
jmp 0x40ef45
push edi
push edi
push edi
push 4
push dword [ebp - 8]
call dword [0x410130]
mov edi, eax
test edi, edi
jne 0x40eeca
cmp dword [ebp - 4], ebx
mov esi, dword [0x41019c]
je 0x40ef41
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
jmp 0x40ef41
cmp word [edi], 0x5a4d
jne 0x40eefa
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [0x41017c]
test eax, eax
jne 0x40ef27
cmp dword [esi], 0x4550
jne 0x40ef27
push esi
push edi
call fcn.0040edd0
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
cmp dword [ebp - 4], ebx
mov esi, dword [0x41019c]
je 0x40ef0d
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
push edi
call dword [0x41012c]
cmp dword [ebp - 8], 0
je 0x40ef1f
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
mov esi, dword [0x41019c]
je 0x40ef3a
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
push edi
call dword [0x41012c]
cmp dword [ebp - 8], 0
je 0x40ef4c
push dword [ebp - 8]
call esi
xor eax, eax
jmp 0x40ef22
Function at 0x401a70
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x15c
mov eax, dword [esp + 0x160]
push ebx
push ebp
push esi
push edi
and eax, 0xffff
push 0x40b0ec
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x174]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x20]
push 0
push edx
mov esi, eax
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
mov ecx, 0x40
mov dword [esp + 0x14], eax
lea edi, [esp + 0x69]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x1c], eax
mov byte [esp + 0x68], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x40da4c]
test eax, eax
jne 0x401b3c
mov eax, 0x40a11c
mov ecx, dword [esp + 0x174]
push eax
push ecx
lea edx, [esp + 0x70]
push str.__s___s
push edx
call fcn.00402a88
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x68]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401b9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_failed___d__n
call fcn.00402ece
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x15c
ret
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x15c
ret
Function at 0x41e240
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41ba08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push 0xffffffffffffffff
push eax
push ebx
push 0xfde9
mov dword [esp + 0x24], ebx
call dword [fcn.0041c0a8]
mov edi, eax
cmp edi, ebx
jle 0x41e322
mov cl, byte [esp + 0x34]
push ebp
lea ebp, [edi + edi]
mov byte [esp + 0x14], cl
push ebp
call fcn.00422a1a
add esp, 4
mov esi, eax
cmp edi, ebx
mov dword [esp + 0x18], esi
jbe 0x41e2ae
mov ecx, edi
cmp eax, ebx
je 0x41e2a8
mov word [eax], bx
add eax, 2
dec ecx
jne 0x41e2a1
lea eax, [esi + ebp]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x38]
push edi
push esi
push 0xffffffffffffffff
push edx
push ebx
push 0xfde9
mov dword [esp + 0x44], ebx
call dword [fcn.0041c0a8]
cmp eax, ebx
pop ebp
jle 0x41e311
mov edi, dword [esp + 0x30]
mov cl, byte [esp + 0x34]
dec eax
mov byte [edi], cl
push eax
push esi
mov ecx, edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.004199a0
push esi
call fcn.00421ec4
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push esi
mov dword [esp + 0x2c], 0xffffffff
call fcn.00421ec4
add esp, 4
mov esi, dword [esp + 0x30]
mov dl, byte [esp + 0x34]
push 0x425d24
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00422448
add esp, 4
mov edi, eax
mov ecx, esi
push 1
push edi
call fcn.0041ad60
test al, al
je 0x41e36c
mov eax, dword [esi + 4]
push edi
push 0x425d24
push eax
call fcn.00411dc0
add esp, 0xc
mov ecx, esi
push edi
call fcn.0041ad40
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0xf91d00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0xfb1040]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push 0x206
xor ebx, ebx
lea ecx, [esp + 0x12]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x18], ax
call fcn.00f9cce0
add esp, 0xc
mov dword [esp + 4], ebx
cmp edi, ebx
je 0xf91e21
cmp esi, ebx
je 0xf91e21
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0xf91d50
sub eax, edx
sar eax, 1
je 0xf91e21
cmp dword [esp + 0x220], ebx
je 0xf91d75
lea edx, [esp + 0xc]
push edx
jmp 0xf91daf
mov eax, dword [esp + 0x21c]
cmp dword [eax], 3
jne 0xf91daa
push 0x104
lea ecx, [esp + 0x10]
push ecx
call dword [fcn.00fac0e0]
push 0xfadccc
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.00f99bc5
add esp, 0xc
jmp 0xf91dba
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [fcn.00fac128]
push esi
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.00f99bc5
push 0xfadcd0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00f99d08
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, ebx
je 0xf91e21
push eax
push 1
push 0x200
push edi
call fcn.00f99ffb
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00f9a08f
add esp, 0x14
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00f99bb6
add esp, 0x214
ret 8
mov ecx, dword [esp + 0x214]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00f99bb6
add esp, 0x214
ret 8

Function at 0xf91eb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0xfb1040]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.00f9cce0
add esp, 0xc
cmp edi, esi
je 0xf91f98
mov eax, 0xfadcd8
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0xf91ef5
sub eax, edx
sar eax, 1
je 0xf91f1f
push 0xfadcdc
lea edx, [esp + 8]
push 0xfadcd8
push edx
call fcn.00f99d08
add esp, 0xc
jmp 0xf91f5a
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [fcn.00fac128]
push 0xfadc98
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.00f99bc5
push 0xfadcdc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00f99d08
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0xf91f7d
push eax
push 1
push 0x200
push edi
call fcn.00f9a26d
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00f9a08f
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00f99bb6
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00f99bb6
add esp, 0x214
ret
Function at 0xf93450
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, 0xfadcd8
mov dword [esp], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0xf93462
sub eax, edx
sar eax, 1
jne 0xf93479
xor eax, eax
add esp, 0x18
ret
push 0xfadcdc
lea eax, [esp + 4]
push 0xfadcd8
push eax
call fcn.00f99d08
add esp, 0xc
test eax, eax
jne 0xf93473
mov edx, dword [esi + 4]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov word [esp + 0x14], ax
mov eax, dword [esp]
push eax
mov ecx, 0x4d42
push 1
mov word [esp + 0x10], cx
lea ecx, [esp + 0x10]
add edx, 0xe
push 0xe
push ecx
mov dword [esp + 0x1a], edx
mov dword [esp + 0x22], 0x36
call fcn.00f9a26d
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push edx
push 1
push eax
push ecx
call fcn.00f9a26d
mov edx, dword [esp + 0x20]
push edx
call fcn.00f9a08f
add esp, 0x24
mov eax, 1
add esp, 0x18
ret

Function at 0xf936c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0xfb1040]
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.00f9cce0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0xf9378f
mov eax, 0xfadc98
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0xf93705
sub eax, edx
sar eax, 1
je 0xf9378f
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [fcn.00fac128]
push 0xfadc98
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00f99bc5
push 0xfadcd0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00f99d08
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0xf9378f
push eax
push 1
push 0x200
push esi
call fcn.00f99ffb
mov eax, dword [esp + 0x14]
push eax
call fcn.00f9a08f
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00f99bb6
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00f99bb6
add esp, 0x214
ret
Function at 0xf93d20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.00f9a370
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0xfaf9d8]
fadd qword [0xfaf9f0]
call fcn.00fa7a60
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0xf93e40
call fcn.00f9a370
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0xfaf9d8]
fmul qword [0xfaf9e8]
fadd qword [0xfaf9e0]
call fcn.00fa7a60
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0xf93e28
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0xf93e19
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0xf93e10
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0xf93dd7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret

Function at 0xf93e50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0xfadcd0
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.00f99d08
add esp, 0xc
test eax, eax
je 0xf93e74
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.00f9b542
mov eax, dword [esp + 0x1c]
push eax
call fcn.00f9b44a
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.00f9b542
lea ebp, [esi + 0x32]
push ebp
call fcn.00f9a67b
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.00f99ffb
mov eax, dword [esp + 0x40]
push eax
call fcn.00f9a08f
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.00f93f20
mov ecx, dword [esp + 0x4c]
push 0xfadcdc
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00f99d08
add esp, 0x40
test eax, eax
je 0xf93ef2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.00f9a26d
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00f9a08f
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0xf93f70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x320
mov eax, dword [0xfb1040]
xor eax, esp
mov dword [esp + 0x31c], eax
mov eax, dword [0xfade88]
mov ecx, dword [0xfade8c]
mov edx, dword [0xfade90]
push 0x103
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov ax, word [0xfade94]
lea ecx, [esp + 0x15]
push 0
push ecx
mov dword [esp + 0x14], edx
mov word [esp + 0x18], ax
mov byte [esp + 0x1c], 0
call fcn.00f9cce0
push 0x103
lea edx, [esp + 0x125]
push 0
push edx
mov byte [esp + 0x12c], 0
call fcn.00f9cce0
push 0x103
lea eax, [esp + 0x235]
push 0
push eax
mov byte [esp + 0x23c], 0
call fcn.00f9cce0
add esp, 0x24
lea ecx, [esp + 0x114]
push ecx
push 0x104
call dword [0xfac078]
lea eax, [esp]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf94015
push esi
push edi
lea edi, [esp + 0x11c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0xf94028
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0x104
lea edx, [esp + 0x1c]
mov ecx, eax
push edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [0xfac074]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x224]
push 0x104
push ecx
call fcn.00f9b077
lea edx, [esp + 0x22c]
push 0x5c
push edx
call fcn.00f9b280
add esp, 0x14
test eax, eax
je 0xf94082
mov byte [eax], 0
lea eax, [esp + 0x11c]
push 0xfade98
push eax
call fcn.00f9b060
mov esi, eax
add esp, 8
test esi, esi
je 0xf941e4
push esi
push 1
push 9
push 0xfade9c
call fcn.00f9a26d
push esi
push 1
push 5
push 0xfadea8
call fcn.00f9a26d
lea eax, [esp + 0x38]
add esp, 0x20
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf940d0
push esi
sub eax, edx
push 1
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00f9a26d
push esi
push 1
push 2
push 0xfadeb0
call fcn.00f9a26d
push esi
push 1
push 0xa
push 0xfadeb4
call fcn.00f9a26d
lea eax, [esp + 0x48]
add esp, 0x30
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf94110
push esi
sub eax, edx
push 1
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00f9a26d
push esi
push 1
push 0xf
push 0xfadec0
call fcn.00f9a26d
push esi
push 1
push 7
push 0xfaded0
call fcn.00f9a26d
lea eax, [esp + 0x250]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0xf94152
push esi
sub eax, ecx
push 1
push eax
lea eax, [esp + 0x22c]
push eax
call fcn.00f9a26d
push esi
push 1
push 3
push 0xfadeb0
call fcn.00f9a26d
push esi
push 1
push 5
push 0xfadea8
call fcn.00f9a26d
lea eax, [esp + 0x14c]
add esp, 0x30
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0xf94197
push esi
sub eax, ecx
push 1
push eax
lea ecx, [esp + 0x128]
push ecx
call fcn.00f9a26d
push esi
push 1
push 1
push 0xfaded8
call fcn.00f9a26d
push esi
call fcn.00f9a08f
add esp, 0x24
push 0
push 0
push 0
lea edx, [esp + 0x128]
push edx
push 0xfadedc
push 0
call dword [0xfac194]
mov ecx, dword [esp + 0x324]
pop edi
pop esi
xor ecx, esp
call fcn.00f99bb6
add esp, 0x320
ret
Function at 0xf95560
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.00fa46f0
mov eax, dword [0xfb1040]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x1010]
push ebx
push ebp
mov ebp, dword [0xfac20c]
xor ebx, ebx
push ebx
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0xf955b8
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.00f99bb6
add esp, 0x100c
ret
cmp dword [esp + 8], ebx
jbe 0xf955f7
push esi
nop
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0xf955f6
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00f9a26d
add ebx, esi
add esp, 0x10
cmp ebx, dword [esp + 0xc]
jb 0xf955c0
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00f9a08f
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp ebx, dword [esp + 8]
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.00f99bb6
add esp, 0x100c
ret

Function at 0xf977e0
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
jne 0xf977e7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0xf978c4
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 + 0xfaf3a8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0xfaf3a8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0xfaf3a8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xfaf3a8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xfaf3a8]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xfaf3a8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xfaf3a8]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xfaf3a8]
inc ecx
sub edx, 8
sub esi, 1
jne 0xf97800
pop edi
test edx, edx
je 0xf978eb
jmp 0xf978d0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0xfaf3a8]
inc ecx
sub edx, 1
jne 0xf978d0
not eax
pop esi
ret

Function at 0xf978f0
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 + 0xfaf3a8]
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 + 0xfaf3a8]
mov dword [edx + 8], ecx
ret
Function at 0xf97940
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 + 0xfaf3a8]
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 + 0xfaf3a8]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0xf98d40
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 0xf98d5e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0xf98d52
cmp dword [edi + 0x7c], ebx
je 0xf98d6d
call fcn.00f99120
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00f98ab0
add esp, 0xc
test eax, eax
je 0xf98d94
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x7e
call fcn.00f9a67b
mov esi, eax
add esp, 4
cmp esi, ebx
je 0xf98dd2
push 0x4000
call fcn.00f9a67b
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 0xf98ddf
push esi
call fcn.00f9a59e
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 0xf98e27
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00f97c00
test eax, eax
jne 0xf98e27
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 0xf98e4e
mov cl, byte [edi + 0x39]
mov byte [esi + 0x7d], cl
jmp 0xf98e54
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 0xf98e91
lea ecx, [ecx]
mov cl, byte [ebp]
cmp cl, bl
je 0xf98e91
call fcn.00f978f0
add ebp, 1
jne 0xf98e80
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