joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f163
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, dword [eax]
movzx ecx, bl
push esi
push edi
mov cl, byte [ecx + 0x4a40a0]
movzx edi, cl
mov byte [ebp - 1], cl
lea ecx, [edi + eax]
cmp ecx, edx
jg 0x45f272
mov esi, dword [ebp + 8]
mov ecx, 6
sub ecx, edi
mov byte [ebp + 0x17], 0
mov edx, 1
shl edx, cl
dec edx
and ebx, edx
cmp edi, 5
ja case.default.0x45f139
jmp dword [edi*4 + 0x45f2c0]
mov dh, byte [eax + esi]
inc eax
movzx ecx, dh
and ecx, 0x3f
shl ebx, 6
or ebx, ecx
cmp ebx, 0x110
jge case.0x45f139.4
xor dh, 0xbf
and dh, 0xc0
jmp 0x45f166
mov dh, byte [ebp + 0x17]
mov dl, byte [eax + esi]
inc eax
movzx ecx, dl
xor dl, 0xbf
and ecx, 0x3f
shl ebx, 6
and dl, 0xc0
or ebx, ecx
or dh, dl
jmp 0x45f182
mov dh, byte [ebp + 0x17]
mov dl, byte [eax + esi]
inc eax
movzx ecx, dl
xor dl, 0xbf
and ecx, 0x3f
shl ebx, 6
and dl, 0xc0
or ebx, ecx
or dh, dl
jne case.0x45f139.4
mov dl, byte [ebp + 0x18]
cmp ebx, dword [edi*4 + 0x4a41a0]
jl 0x45f22a
mov ecx, ebx
and ecx, 0xfffff800
cmp ecx, 0xd800
jne 0x45f1c0
cmp dl, 0xfe
jne 0x45f22a
test dl, dl
jle 0x45f2b2
cmp ebx, 0xfdd0
jl 0x45f2b2
cmp ebx, 0xfdef
jbe 0x45f1f0
mov ecx, ebx
and ecx, 0xfffe
cmp ecx, 0xfffe
jne 0x45f2b2
cmp ebx, 0x10ffff
ja 0x45f2b2
mov ebx, dword [edi*4 + 0x4a41b0]
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov ecx, 0x15
cmp byte [ebp + 0x18], 0
pop edi
pop esi
cmovge eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov dl, byte [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov bl, byte [ebp - 1]
mov ch, bl
mov eax, dword [eax]
test bl, bl
je 0x45f251
jmp 0x45f240
mov cl, byte [eax + esi]
and cl, 0xc0
cmp cl, 0x80
jne 0x45f251
inc eax
add bl, 0xff
jne 0x45f240
test dl, dl
js 0x45f2af
movzx edx, ch
movzx ecx, bl
sub edx, ecx
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov ebx, dword [edx*4 + 0x4a41b0]
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, eax
cmp eax, edx
jge 0x45f290
mov esi, dword [ebp + 8]
jmp 0x45f280
mov cl, byte [eax + esi]
and cl, 0xc0
cmp cl, 0x80
jne 0x45f290
inc eax
cmp eax, edx
jl 0x45f280
cmp byte [ebp + 0x18], 0
jl 0x45f2af
mov ecx, eax
sub ecx, edi
pop edi
pop esi
mov ebx, dword [ecx*4 + 0x4a41b0]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
or ebx, 0xffffffff
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x462900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00463ff0
Function at 0x463f40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x463fb5
mov dword [ebp - 4], 0xffffffff
push edi
nop
lea ecx, [ebp + 0xc]
cmp esi, 0xffffffff
lea eax, [ebp - 4]
cmovbe eax, ecx
mov edi, dword [eax]
push edi
push dword [ebp + 8]
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x463f95
push str.success
push 0x25
push str.c:_b_build_slavewin_build_src_base_rand_util_win.cc
lea ecx, [ebp - 0xb4]
or ebx, 1
call fcn.00447200
test bl, 1
je 0x463fa8
lea ecx, [ebp - 0xb4]
and ebx, 0xfffffffe
call fcn.00447510
add dword [ebp + 8], edi
sub esi, edi
mov dword [ebp + 0xc], esi
test esi, esi
jne 0x463f60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x464200
Capabilities:
Enumerate processes

Disassembly:
push esi
push edi
mov esi, ecx
push 0x22c
push 0
lea edi, [esi + 0xc]
push edi
call fcn.0047cd50
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x464239
mov byte [esi + 8], 1
call sub.KERNEL32.dll_Process32FirstW
neg eax
pop edi
sbb eax, eax
neg eax
pop esi
ret
call sub.KERNEL32.dll_Process32NextW
neg eax
pop edi
sbb eax, eax
neg eax
pop esi
ret
Function at 0x4684d0
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x58], eax
xorps xmm0, xmm0
lea eax, [edi + 0x38]
mov dword [ebp - 0x54], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
lea eax, [edi + 0x3c]
mov dword [ebp - 0x4c], eax
lea eax, [edi + 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 0x20]
push 0
mov dword [ebp - 0x40], eax
lea eax, [ebp - 4]
push eax
push 0x2c
lea eax, [ebp - 0x30]
mov dword [ebp - 0x5c], 1
push eax
push 0x2c
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x3c], 0
push eax
push esi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movdqu xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x10], 0
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x468619
cmp dword [ebp - 0x30], 2
jne 0x468619
cmp dword [ebp - 0x2c], 0
je 0x468619
cmp dword [ebp - 0x10], 0
je 0x468619
cmp dword [ebp - 0xc], 0
je 0x468619
cmp dword [ebp - 8], 0
je 0x468619
push 0
lea eax, [ebp - 4]
mov dword [ebp - 0x84], 0
push eax
push 0x2c
lea eax, [ebp - 0x88]
mov dword [ebp - 0x68], 0
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0
push eax
push esi
movdqu xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x60], 0
movq qword [ebp - 0x70], xmm0
mov dword [ebp - 0x88], 3
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x468619
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x469330
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4b13a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x46937d
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd41
mov esp, ebp
pop ebp
ret
sub esp, 8
lea eax, [ebp - 0x20c]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x20c], 0
jne 0x469398
xor ecx, ecx
jmp 0x4693b0
lea ecx, [ebp - 0x20c]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4693a1
sub ecx, esi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x224]
call fcn.00445960
push eax
mov ecx, edi
call fcn.00445a50
lea ecx, [ebp - 0x224]
call fcn.00407ff0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0047cd41
mov esp, ebp
pop ebp
ret
Function at 0x46aa10
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
push 0x4a4e28
push 0
push 0
mov byte [esi], 0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x46aa46
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete al
mov byte [esi], al
mov eax, esi
pop esi
ret

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

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x4b5640], ecx
inc eax
cmp eax, 0x100
jb 0x4771d2
cmp eax, 0x800
jae 0x4772a3
mov edi, edi
mov edx, dword [eax*4 + 0x4b5240]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4b5640]
mov dword [eax*4 + 0x4b5640], edx
inc eax
cmp eax, 0x800
jb 0x477280
mov dword [0x4b443c], 0x478010
call fcn.00477e50
mov ecx, dword [0x4b443c]
test eax, eax
mov edx, 0x4780b0
cmove ecx, edx
mov dword [0x4b443c], ecx
ret
Function at 0x478390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x4783b0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp + 0xc], edx
add esi, ebx
mov dword [ebp - 4], esi
cmp esi, edx
jae 0x4783e2
lea ecx, [ecx]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x4783df
inc esi
cmp esi, edx
jb 0x4783d0
mov dword [ebp - 4], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x478507
cmp ecx, 3
jbe 0x4783fc
xor eax, eax
jmp 0x47843a
dec ecx
shl eax, cl
and eax, 7
je 0x47843a
movzx ecx, byte [eax + 0x4a55f0]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x4a55e8], 0
mov cl, byte [edx + 4]
je 0x478424
test cl, cl
je 0x478424
cmp cl, 0xff
jne 0x478437
mov edx, dword [ebp + 0xc]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x4783c4
mov edx, dword [ebp + 0xc]
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x47845c
cmp cl, 0xff
je 0x47845c
mov esi, dword [ebp + 8]
and eax, 3
add eax, eax
or eax, 1
inc ebx
jmp 0x4783c4
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
lea ecx, [ecx]
cmp dword [ebp + 0x18], 0
je 0x47848d
lea edx, [edi + ebx]
add edx, esi
jmp 0x478493
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x4784d1
movzx edi, byte [eax + 0x4a55f0]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x4784bd
cmp cl, 0xff
jne 0x4784d1
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x478480
mov esi, dword [ebp - 4]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp + 0xc]
shr ecx, 8
add ebx, 5
mov byte [esi + 2], cl
mov esi, dword [ebp + 8]
jmp 0x4783c4
pop edi
pop esi
cmp ecx, 3
jbe 0x47851c
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47a8b0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.0047cd50
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov eax, 1
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
pop esi
pop ebp
ret
Function at 0x47a9f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4b13a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push edi
push 0
mov dword [ebp - 0x58], eax
or edi, 0xffffffff
mov eax, dword [ebp + 0xc]
or ebx, edi
push 0x8000
push eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 0
call fcn.00482175
add esp, 0xc
mov dword [ebp - 0x5c], eax
test eax, eax
jns 0x47aa47
lea eax, [edi + 7]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd41
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x54]
push ecx
push eax
call fcn.0047ad10
mov esi, eax
add esp, 8
test esi, esi
jne 0x47ab31
push eax
push 0x8000
push dword [ebp - 0x58]
call fcn.00482175
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x47aa80
mov esi, 6
jmp 0x47ab31
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.00481dff
add esp, 8
test eax, eax
je 0x47aa9b
mov esi, 6
jmp 0x47ab31
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x20], eax
je 0x47aaad
mov esi, 8
jmp 0x47ab31
push eax
call fcn.00481694
mov esi, eax
add esp, 4
mov dword [ebp - 0x60], esi
test esi, esi
jne 0x47aac4
lea esi, [eax + 1]
jmp 0x47ab31
push dword [ebp - 0x4c]
push esi
push edi
call fcn.0048e00a
mov ecx, dword [ebp - 0x4c]
add esp, 0xc
mov dword [ebp - 0x58], ecx
cmp eax, ecx
je 0x47aae2
mov esi, 6
jmp 0x47ab31
call fcn.004771d0
mov edx, dword [ebp - 0x58]
mov ecx, esi
call fcn.004771b0
not eax
cmp eax, dword [ebp - 0x48]
je 0x47aaff
mov esi, 4
jmp 0x47ab31
push 0
push 0x8301
push dword [ebp - 0x64]
call fcn.00482175
mov ebx, eax
add esp, 0xc
test ebx, ebx
jns 0x47ab1e
mov esi, 6
jmp 0x47ab31
push ebx
push esi
push dword [ebp - 0x5c]
lea eax, [ebp - 0x54]
push eax
call fcn.0047ab80
add esp, 0x10
mov esi, eax
push dword [ebp - 0x60]
call fcn.0047cc96
push dword [ebp - 0x5c]
call fcn.0047e48a
add esp, 8
test edi, edi
js 0x47ab51
push edi
call fcn.0047e48a
add esp, 4
test ebx, ebx
js 0x47ab5e
push ebx
call fcn.0047e48a
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0047cd41
mov esp, ebp
pop ebp
ret
Function at 0x47ab80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebx + 0x14]
add esi, dword [ebx + 0x18]
mov eax, dword [ebx + 8]
add esi, dword [ebx + 0x1c]
add eax, edi
push esi
mov dword [ebp - 0xc], eax
call fcn.00481694
mov ecx, eax
add esp, 4
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x47abbc
pop edi
pop esi
lea eax, [ecx + 1]
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
test esi, esi
je 0x47ac1b
mov edx, SysReAllocString
mov eax, esi
cmp esi, edx
cmovg eax, edx
push eax
push ecx
push dword [ebp + 0xc]
call fcn.0048e00a
add esp, 0xc
test eax, eax
js 0x47ac0f
sub esi, eax
test eax, eax
je 0x47abef
mov ecx, dword [ebp - 8]
jmp 0x47abc3
test esi, esi
je 0x47ac18
mov dword [ebp - 4], 8
push dword [ebp - 8]
call fcn.0047cc96
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 6
jmp 0x47abfa
mov ecx, dword [ebp - 8]
mov ebx, dword [ebx + 0x14]
mov esi, ecx
add ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
add eax, ebx
add ecx, eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
jmp 0x47ac40
push dword [esi]
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [esi + 4]
mov dword [esi], eax
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [esi + 8]
mov dword [esi + 4], eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esi]
mov dword [esi + 8], eax
lea eax, [ecx + edi]
cmp eax, dword [ebp - 0xc]
ja 0x47abf3
lea eax, [ecx + ebx]
cmp eax, dword [ebp - 0x10]
ja 0x47abf3
xor edx, edx
test ecx, ecx
je 0x47ac93
mov eax, ebx
sub edi, ebx
mov cl, byte [edi + eax]
lea eax, [eax + 1]
add byte [eax - 1], cl
inc edx
cmp edx, dword [esi]
jb 0x47ac82
mov edi, dword [ebp + 0x10]
mov eax, dword [esi]
push eax
push ebx
push dword [ebp + 0x14]
mov dword [ebp + 0x10], eax
call fcn.0047d974
mov ecx, dword [ebp + 0x10]
add esp, 0xc
cmp eax, ecx
jne 0x47acfe
mov eax, dword [esi + 4]
add edi, ecx
add ebx, ecx
mov dword [ebp + 0x10], edi
mov ecx, dword [ebp + 8]
add eax, ecx
cmp eax, dword [ebp - 0x14]
ja 0x47abf3
mov edi, dword [esi + 4]
push edi
push ecx
push dword [ebp + 0x14]
call fcn.0047d974
add esp, 0xc
cmp eax, edi
jne 0x47acfe
add dword [ebp + 8], edi
mov edi, dword [ebp + 0x10]
add edi, dword [esi + 8]
mov dword [ebp + 0x10], edi
cmp edi, dword [ebp - 0xc]
ja 0x47abf3
add esi, 0xc
cmp esi, dword [ebp - 0x18]
jb 0x47ac40
jmp 0x47abfa
mov dword [ebp - 4], 7
jmp 0x47abfa
Function at 0x47ad10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4b13a0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0xc]
push 0x20
push edi
push dword [ebp + 8]
call fcn.0048e00a
add esp, 0xc
cmp eax, 0x20
je 0x47ad4b
mov eax, 6
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd41
mov esp, ebp
pop ebp
ret
push esi
push dword [edi + 8]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
call esi
push dword [edi + 0xc]
mov dword [edi + 8], eax
call esi
push dword [edi + 0x10]
mov dword [edi + 0xc], eax
call esi
push dword [edi + 0x14]
mov dword [edi + 0x10], eax
call esi
push dword [edi + 0x18]
mov dword [edi + 0x14], eax
call esi
push dword [edi + 0x1c]
mov dword [edi + 0x18], eax
call esi
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call fcn.00481dff
add esp, 8
pop esi
test eax, eax
jne 0x47ad37
cmp dword [edi], 0x4944424d
jne 0x47adce
cmp dword [edi + 4], 0x30314646
jne 0x47adce
mov ecx, dword [edi + 0x14]
add ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
add eax, 0x20
add eax, ecx
sub eax, dword [ebp - 0x20]
neg eax
pop edi
sbb eax, eax
and eax, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd41
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 8
xor ecx, ebp
pop edi
call fcn.0047cd41
mov esp, ebp
pop ebp
ret
Function at 0x494658
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b13a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0048364a
mov dword [ebp - 0x14], eax
cmp dword [0x4b55ac], esi
jne 0x49474b
push 0x800
push esi
push 0x4ab474
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4946d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x49482b
push esi
push esi
push 0x4ab474
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x49482b
push 0x4ab48c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49482b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4b55ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4b55b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4b55b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b55bc], eax
test eax, eax
je 0x494748
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b55b8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x494770
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x494763
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x494785
push 4
pop eax
jmp 0x49482d
cmp dword [ebp - 0x14], esi
je 0x494785
push dword [0x4b55ac]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x49476a
mov eax, dword [0x4b55b8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4947e3
cmp dword [0x4b55bc], edi
je 0x4947e3
push eax
call ebx
push dword [0x4b55bc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4947e3
test eax, eax
je 0x4947e3
call ecx
test eax, eax
je 0x4947d8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4947d8
test byte [ebp - 8], 1
jne 0x4947e3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x494813
mov eax, dword [0x4b55b0]
cmp eax, edi
je 0x494810
push eax
call ebx
test eax, eax
je 0x494810
call eax
mov esi, eax
test esi, esi
je 0x494810
mov eax, dword [0x4b55b4]
cmp eax, edi
je 0x494810
push eax
call ebx
test eax, eax
je 0x494810
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4b55ac]
call ebx
test eax, eax
je 0x49482b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x49482d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047cd41
mov esp, ebp
pop ebp
ret
Function at 0x49a0d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov dword [ebp - 4], 0
call fcn.0045ca50
test al, al
jne 0x49a0f0
pop esi
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 0x34], 0
mov ecx, 0x1000002
push ebx
push 0
push 0
mov eax, 2
cmovne eax, ecx
mov ecx, esi
push 0
push eax
push 0
call fcn.0045ca40
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
lea ecx, [esi + 0x30]
call fcn.0045ce30
mov eax, dword [esi + 0x30]
test eax, eax
je 0x49a21d
cmp eax, 0xffffffff
je 0x49a21d
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push edi
xor edi, edi
movq qword [ebp - 0xc], xmm0
push 0x4ad928
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.0049a280
test al, al
je 0x49a183
mov ecx, esi
call fcn.0045c9c0
mov ecx, eax
add eax, 0xffffffff
adc edx, 0xffffffff
test edx, edx
ja 0x49a212
jb 0x49a17b
cmp eax, 0x7ffffffe
ja 0x49a212
mov dword [esi + 0x2c], ecx
mov ecx, dword [ebp - 0xc]
jmp 0x49a1e5
lea eax, [ebp - 4]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x14]
movlpd qword [ebp - 0xc], xmm0
push eax
lea eax, [ebp - 0xc]
movlpd qword [ebp - 0x14], xmm0
push eax
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebx]
call fcn.0049a2b0
mov eax, dword [ebp - 4]
add esp, 0x1c
cdq
mov edi, eax
add edi, dword [ebx + 8]
adc edx, dword [ebx + 0xc]
cmp dword [ebp - 8], 0
jl 0x49a212
mov ecx, dword [ebp - 0xc]
jg 0x49a1ca
test ecx, ecx
jb 0x49a212
test edx, edx
jl 0x49a212
jg 0x49a1d6
test edi, edi
jb 0x49a212
test edx, edx
ja 0x49a212
jb 0x49a1df
cmp edi, 0xffffffff
ja 0x49a212
mov eax, dword [ebx + 8]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 8]
push edi
push ecx
push eax
push 4
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [esi + 0x28], ecx
test ecx, ecx
je 0x49a212
mov eax, dword [ebp - 4]
pop edi
add eax, ecx
mov dword [esi + 0x28], eax
mov al, 1
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret