joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496a2f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dde
mov eax, dword [0x4d3034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040600f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x496a71
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x496bcd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040616d
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4d6f80]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403319
mov ecx, dword [esi*4 + 0x4d6f80]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x496bc6
cmp eax, dword [edi + ecx + 0x24]
jne 0x496bc6
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x496bc6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403319
add esp, 0x14
test edx, edx
jl 0x496bc6
jg 0x496b3c
test eax, eax
jb 0x496bc6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x496bc6
jl 0x496b56
cmp dword [ebp - 0x1008], eax
ja 0x496bc6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x496b74
test ebx, ebx
je 0x496bad
cmp ecx, edi
jae 0x496bad
mov al, byte [ecx]
cmp al, 0xd
jne 0x496b8e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x496b9a
cmp byte [ecx + 1], 0xa
jne 0x496b9a
inc ecx
jmp 0x496b9a
movzx eax, al
movsx eax, byte [eax + 0x4d3370]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x496b74
cmp edx, ebx
jne 0x496b74
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x496bcb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004030f8
leave
ret
Function at 0x49730c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4d6f80]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49734c
cmp byte [ebx], 0xa
jne 0x49734c
or byte [eax + edi + 0x28], 4
jmp 0x497351
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49744f
mov al, byte [edx]
cmp al, 0x1a
je 0x497431
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x497380
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4973a5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4973af
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x497362
jmp 0x49744f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49742c
cmp dword [ebp - 0xc], 0
je 0x49742c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d6f80]
test byte [eax + edi + 0x28], 0x48
je 0x497406
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4973f1
mov byte [esi], dl
jmp 0x497402
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d6f80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49744f
cmp byte [ebp - 1], 0xa
jne 0x497415
cmp esi, ebx
jne 0x497415
mov byte [esi], 0xa
jmp 0x49744e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040196f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49744f
mov byte [esi], 0xd
jmp 0x49744e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d6f80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49744b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49744f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4974ab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4d6f80]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4974ee
cmp word [esi], dx
jne 0x4974ee
or byte [edi + eax + 0x28], 4
jmp 0x4974f3
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x497646
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x497626
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x497535
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49756b
cmp eax, edx
jae 0x497577
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x49750d
jmp 0x497646
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x497622
cmp dword [ebp - 0x14], 0
je 0x497622
mov eax, dword [ebx*4 + 0x4d6f80]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4975fa
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4975c3
mov word [esi], cx
jmp 0x4975f6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d6f80]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d6f80]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d6f80]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x497646
pop ebx
cmp word [ebp - 4], bx
jne 0x49760b
cmp esi, dword [ebp + 0xc]
jne 0x49760b
mov word [esi], bx
jmp 0x497643
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040196f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x497646
push 0xd
jmp 0x49763f
mov ecx, dword [ebx*4 + 0x4d6f80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49763d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x497646
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49d4f1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d3034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49d53c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049d9b3
test al, al
jne 0x49d536
sub edx, 2
cmp edx, edi
jne 0x49d51c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49d55e
lea eax, [edi + 2]
cmp edx, eax
je 0x49d55e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049d0ea
add esp, 0x10
jmp 0x49d658
push esi
lea ecx, [ebp - 0x255]
call fcn.0049d9b3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49d5a1
push dword [ebp - 0x25c]
jmp 0x49d54e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49d5de
cmp word [ebp - 0x226], 0
je 0x49d5ff
cmp word [ebp - 0x226], ax
jne 0x49d5de
cmp word [ebp - 0x224], 0
je 0x49d5ff
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049d0ea
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49d64b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49d5b8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49d633
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49d658
push 0x49cad2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004056aa
add esp, 0x10
jmp 0x49d628
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030f8
leave
ret
Function at 0xbae1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00bae140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00bae140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00bae140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00bae140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xbaebfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xbaec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xbc087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xbaec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xbaec52
xor eax, eax
pop esi
leave
ret 4
Function at 0x416b20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x84
mov eax, dword [esp + 0x90]
push ebx
xor ebx, ebx
xor ecx, ecx
cmp eax, ebx
push ebp
sete cl
xor edx, edx
cmp eax, 2
setl dl
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jmp 0x416b54
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
fld qword [esp + 0xa8]
test eax, eax
je 0x416b65
fchs
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x416ba1
mov esi, dword [esp + 0x98]
mov ecx, 8
lea edi, [esp + 0x3c]
xor ebp, ebp
rep movsd dword es:[edi], dword [esi]
fld qword [esp + 0x54]
fmul st(1)
fadd qword [esp + 0x3c]
fstp qword [esp + 0x3c]
fld qword [esp + 0x4c]
fmul st(1)
fsubr qword [esp + 0x44]
fstp qword [esp + 0x44]
fstp st(0)
jmp 0x416bcf
mov esi, dword [esp + 0x9c]
mov ecx, 7
lea edi, [esp + 0x78]
xor ebp, ebp
rep movsd dword es:[edi], dword [esi]
fld qword [esp + 0x88]
fadd st(1)
fabs
fstp qword [esp + 0x88]
fstp st(0)
jmp 0x416bcf
mov edx, dword [esp + 0x18]
fld qword [esp + 0xa8]
test ebp, ebp
je 0x416bdc
fchs
test edx, edx
jne 0x416c13
mov eax, dword [esp + 0x98]
mov ecx, 8
lea edi, [esp + 0x1c]
lea esi, [eax + 0x20]
rep movsd dword es:[edi], dword [esi]
fld qword [esp + 0x34]
fmul st(1)
fadd qword [esp + 0x1c]
fstp qword [esp + 0x1c]
fld qword [esp + 0x2c]
fmul st(1)
fsubr qword [esp + 0x24]
fstp qword [esp + 0x24]
jmp 0x416c45
mov eax, dword [esp + 0xa4]
lea edi, [esp + 0x5c]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esp + 0x9c]
lea esi, [eax + ecx*4 - 0x1c]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
fld qword [esp + 0x6c]
fadd st(1)
fabs
fstp qword [esp + 0x6c]
mov eax, dword [esp + 0x14]
test eax, eax
fstp st(0)
jne 0x416c91
test edx, edx
mov ecx, ebx
jne 0x416c73
mov edx, dword [esp + 0xb0]
lea eax, [esp + 0x3c]
shl ecx, 4
add ecx, edx
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
call fcn.0045eaa0
jmp 0x416cd1
mov edx, dword [esp + 0xb0]
lea eax, [esp + 0x3c]
shl ecx, 4
add ecx, edx
lea edx, [esp + 0x5c]
push ecx
push edx
push eax
call fcn.0045e870
jmp 0x416cd1
test edx, edx
mov ecx, ebx
jne 0x416cb5
mov edx, dword [esp + 0xb0]
lea eax, [esp + 0x1c]
shl ecx, 4
add ecx, edx
lea edx, [esp + 0x78]
push ecx
push edx
push eax
call fcn.0045e870
jmp 0x416cd1
mov edx, dword [esp + 0xb0]
lea eax, [esp + 0x78]
shl ecx, 4
add ecx, edx
lea edx, [esp + 0x5c]
push ecx
push edx
push eax
call fcn.0045e930
add esp, 0xc
add ebx, eax
inc ebp
cmp ebp, 2
jl 0x416bcb
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x416b50
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x84
ret
Function at 0x418700
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
push ebx
push esi
push edi
push 0
lea eax, [esp + 0x20]
push 0xc
push eax
call fcn.005471fe
mov esi, dword [ebp + 8]
mov ecx, dword [0x583320]
add esp, 0xc
lea edx, [esp + 0x50]
fld dword [esi]
mov eax, dword [0x583324]
mov dword [esp + 0x24], edx
push 0xa
lea edx, [esp + 0x2c]
push 4
push edx
mov dword [esp + 0x28], ecx
sub esp, 8
mov ebx, 2
lea ecx, [esp + 0x3c]
fstp qword [esp]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], 0xa
mov dword [esp + 0x70], ebx
call fcn.005471ec
mov eax, dword [esp + 0x64]
mov edi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x70]
add esp, 0x14
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x64], ecx
fld dword [edi]
mov ecx, dword [0x583328]
mov dword [esp + 0x68], eax
push eax
lea eax, [esp + 0x40]
push 1
push eax
mov dword [esp + 0x78], edx
sub esp, 8
lea edx, [esp + 0x50]
mov dword [esp + 0x74], ecx
fstp qword [esp]
mov dword [esp + 0x78], edx
call fcn.005471ec
lea ecx, [esp + 0x30]
push ecx
call fcn.005471f8
add esp, 0x18
test eax, eax
jne 0x4188d0
mov edx, dword [esp + 0x54]
push edx
call dword [0x550c24]
mov eax, dword [esp + 0x68]
fstp qword [esp + 0x14]
push eax
call dword [0x550c24]
fld qword [esp + 0x18]
fcomp qword [0x550f20]
add esp, 8
fnstsw ax
test ah, 0x41
jne 0x41880f
fcom qword [0x550f20]
fnstsw ax
test ah, 0x41
je 0x4188dc
fstp st(0)
call fcn.0054719e
push 0
lea ecx, [esp + 0x20]
push 0xc
push ecx
call fcn.005471fe
mov edx, dword [0x583320]
add esp, 0xc
fld dword [esi]
lea eax, [esp + 0x50]
mov ecx, dword [0x583324]
mov dword [esp + 0x24], eax
push 0xa
lea eax, [esp + 0x2c]
push 4
push eax
mov dword [esp + 0x28], edx
sub esp, 8
lea edx, [esp + 0x3c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x64], ecx
fstp qword [esp]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], 0xa
mov dword [esp + 0x70], ebx
call fcn.005471ec
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x78], edx
mov edx, dword [0x583328]
add esp, 0x14
fld dword [edi]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x60], edx
push eax
lea edx, [esp + 0x40]
push 1
push edx
mov dword [esp + 0x78], ecx
sub esp, 8
lea ecx, [esp + 0x50]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ecx
fstp qword [esp]
call fcn.005471ec
lea eax, [esp + 0x30]
push eax
call fcn.005471f8
add esp, 0x18
test eax, eax
je 0x4187d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld dword [esi]
fcomp qword [esp + 0x10]
fnstsw ax
test ah, 0x40
je 0x4188f4
fld dword [edi]
fcomp st(1)
fnstsw ax
test ah, 0x40
jne 0x41890f
fld qword [esp + 0x10]
xor eax, eax
fstp dword [esi]
fstp dword [edi]
mov dword [0x577a48], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
fstp st(0)
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420c90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x549691
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push esi
push edi
push 0
lea ecx, [esp + 0xc]
call fcn.00420790
mov esi, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x7c], esi
mov ecx, dword [esi + 0x30]
lea edi, [esi + 4]
mov dword [esp + 0x68], ecx
push edi
lea ecx, [esp + 0x70]
mov dword [esp + 0x84], eax
call fcn.0054837e
mov eax, dword [0x584b6c]
mov ecx, dword [esi + 0x2c]
xor edx, edx
cmp esi, eax
mov eax, dword [esi]
mov dword [esp + 0x78], ecx
not eax
sete dl
and eax, 1
lea ecx, [esp + 8]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
call fcn.00548270
cmp eax, 1
jne 0x420dc5
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
push 0x1f
push eax
push edi
mov dword [esi + 0x30], edx
call dword [0x550c78]
mov eax, dword [esi]
mov ecx, dword [esp + 0x80]
mov edx, eax
add esp, 0xc
and edx, 1
cmp edx, ecx
jne 0x420d5e
xor edx, edx
test ecx, ecx
sete dl
xor edx, eax
and edx, 1
xor edx, eax
or edx, 2
mov dword [esi], edx
mov eax, dword [esp + 0x70]
test eax, eax
je 0x420d6e
mov dword [0x584b6c], esi
jmp 0x420d80
cmp dword [0x584b6c], esi
jne 0x420d80
mov dword [0x584b6c], 0
mov eax, dword [esp + 0x78]
mov dword [esi + 0x2c], eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x8c], 1
call fcn.00548222
lea ecx, [esp + 8]
mov dword [esp + 0x8c], 0xffffffff
call fcn.0054829a
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
add esp, 0x88
ret
lea ecx, [esp + 0x6c]
mov dword [esp + 0x8c], 2
call fcn.00548222
lea ecx, [esp + 8]
mov dword [esp + 0x8c], 0xffffffff
call fcn.0054829a
mov ecx, dword [esp + 0x84]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x88
ret
Function at 0x484ad0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [esp + 0x78]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x80]
push eax
push edi
mov dword [esp + 0x1c], 0
call fcn.00484fe0
mov ebx, dword [esp + 0x88]
mov ebp, dword [esp + 0x88]
add esp, 8
mov esi, dword [edi]
mov dword [esp + 0x18], 1
test esi, esi
je 0x484cd4
mov eax, dword [esi + 0x34]
test eax, eax
je 0x484cc8
mov ecx, dword [esi]
test ch, 2
je 0x484cbe
mov eax, ecx
xor ecx, ecx
and ah, 0xfd
mov cx, word [esi + 0x6e]
mov dword [esi], eax
xor eax, eax
mov ax, word [esi + 0x48]
mov dword [esp + 0x18], 0
test eax, eax
je 0x484b73
test esi, esi
je 0x484b71
xor edx, edx
mov dx, word [esi + 0x48]
cmp edx, eax
jne 0x484b71
xor edx, edx
mov dx, word [esi + 0x6e]
cmp edx, ecx
jne 0x484b71
mov ebx, esi
mov esi, dword [esi + 0x34]
mov edx, dword [ebx]
and dh, 0xfd
test esi, esi
mov dword [ebx], edx
jne 0x484b4d
mov esi, ebx
mov eax, dword [esi + 0x10]
add eax, 0x20
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x28], edx
mov eax, dword [esi]
test eax, 0x20000
je 0x484bb1
lea eax, [esi + 0x90]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00418920
add esp, 8
mov ecx, dword [esi + 0x34]
xor edx, edx
mov dx, word [esi + 0x6e]
lea eax, [esp + 0x1c]
push edx
push eax
push ecx
call fcn.00484ce0
add esp, 0xc
test eax, eax
jne 0x484bd5
mov esi, dword [esi + 0x34]
jmp 0x484cc0
mov cx, word [eax + 0x48]
test cx, cx
je 0x484c11
lea edx, [esp + 0x10]
and ecx, 0xffff
push edx
lea edx, [esp + 0x8c]
push edx
mov edx, dword [edi]
push edx
xor edx, edx
mov dx, word [eax + 0x6e]
push edx
push ecx
call fcn.00417470
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x9c]
add esp, 0x14
jmp 0x484c21
mov edi, eax
mov dword [esp + 0x88], edi
mov eax, dword [eax + 0x34]
mov dword [esp + 0x10], eax
cmp edi, eax
je 0x484c83
mov eax, dword [esp + 0x84]
test eax, eax
je 0x484c3b
push 1
push edi
call fcn.004ac0f0
add esp, 8
mov eax, dword [edi]
lea ecx, [esp + 0x2c]
and ah, 0xfd
mov dword [edi], eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
push eax
mov eax, dword [0x583160]
push eax
push str._s__d
push ecx
call dword [0x550c38]
lea edx, [esp + 0x3c]
push edx
call fcn.00547162
mov eax, dword [esp + 0x24]
mov ebp, edi
mov edi, dword [edi + 0x34]
add esp, 0x14
cmp edi, eax
jne 0x484c25
mov edi, dword [esp + 0x88]
cmp edi, dword [esi + 0x34]
je 0x484caa
push eax
mov eax, dword [esp + 0x84]
push eax
push edi
call fcn.00488ba0
mov ecx, dword [esp + 0x94]
mov ebx, dword [esi + 0x34]
mov dword [esi + 0x34], ecx
add esp, 0xc
mov dword [ebp + 0x34], ebx
mov eax, dword [ebp]
mov edi, dword [esp + 0x80]
or ah, 2
mov esi, ebp
mov dword [ebp], eax
jmp 0x484cc0
mov esi, eax
test esi, esi
jne 0x484b14
mov eax, dword [esp + 0x18]
test eax, eax
je 0x484b02
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
Function at 0x488cb0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x488cd2
mov edx, dword [esp + 8]
push esi
mov ecx, dword [eax]
mov esi, ecx
xor esi, edx
and esi, 3
xor esi, ecx
mov dword [eax], esi
mov eax, dword [eax + 0x34]
test eax, eax
jne 0x488cbd
pop esi
ret