joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b5b50
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
call esi
push 0
push 0
push 1
push 0
mov dword [0x160cc44], eax
call esi
push 0
push 0
push 1
push 0
mov dword [0x160cc3c], eax
call esi
push 0x160cc40
push 0
push 0
mov dword [0x160cc2c], eax
mov eax, dword [esp + 0x14]
push 0x4b5b30
push 0
push 0
mov dword [0x160cc38], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [0x160cc34], eax
test eax, eax
setne cl
mov eax, ecx
pop esi
ret

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

Disassembly:
mov eax, 0x2464
call fcn.00535460
mov eax, dword [0x160d5e0]
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
mov eax, dword [0x160cd60]
push edi
mov dword [0x9a08e0], ebp
je 0x4b6192
mov ecx, dword [eax + 0x404]
xor edi, edi
cmp ecx, ebp
jle 0x4b6192
mov eax, dword [eax + 0x408]
xor ecx, ecx
mov cl, byte [eax + edi*4]
lea esi, [eax + edi*4]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fmul dword [0x160d5e4]
call fcn.00532e5c
xor edx, edx
mov dword [esp + 0x14], eax
mov dl, byte [esi + 1]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmul dword [0x160d5e4]
call fcn.00532e5c
mov ebx, eax
xor eax, eax
mov al, byte [esi + 2]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [0x160d5e4]
call fcn.00532e5c
mov edx, dword [esp + 0x14]
mov ecx, eax
or ecx, ebx
mov dword [esp + 0x20], eax
or ecx, edx
test ecx, 0xffffff00
je 0x4b615e
sub edx, ebx
mov ecx, edx
sar ecx, 0x1f
not ecx
and ecx, edx
sub ecx, eax
add ecx, ebx
mov edx, ecx
sar edx, 0x1f
not edx
and edx, ecx
add edx, eax
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fdivr dword [0x54f148]
fild dword [esp + 0x14]
fmul st(1)
call fcn.00532e5c
fild dword [esp + 0x1c]
mov dword [esp + 0x14], eax
fmul st(1)
call fcn.00532e5c
fild dword [esp + 0x20]
mov ebx, eax
fmul st(1)
call fcn.00532e5c
mov edx, dword [esp + 0x14]
fstp st(0)
mov byte [esi], dl
mov ecx, dword [0x160cd60]
inc edi
mov edx, dword [ecx + 0x408]
mov byte [edx + edi*4 - 3], bl
mov ecx, dword [0x160cd60]
mov edx, dword [ecx + 0x408]
mov byte [edx + edi*4 - 2], al
mov eax, dword [0x160cd60]
cmp edi, dword [eax + 0x404]
jl 0x4b6098
mov edx, dword [eax + 0x40c]
mov ecx, dword [eax + 0x410]
cmp edx, ebp
mov dword [esp + 0x10], ebp
jle 0x4b667a
lea ebx, [esp + 0x74]
lea ebp, [ecx + 0xbc]
sub ebx, ecx
mov dword [esp + 0x24], ebp
sub ebx, 0xc
mov dword [esp + 0x28], ebx
jmp 0x4b61c7
Function at 0x4cdc70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x98
lea eax, [esp + 0x14]
push ebx
push ebp
push esi
push edi
push eax
push ecx
call fcn.004730f0
mov edx, dword [esp + 0xb4]
mov esi, dword [esp + 0xc0]
mov edi, dword [esp + 0xbc]
add esp, 8
xor ecx, ecx
lea eax, [esp + 0x50]
test cl, 1
je 0x4cdcb0
mov ebx, dword [edi]
jmp 0x4cdcb2
mov ebx, dword [esi]
test cl, 2
mov dword [esp + 0x18], ebx
je 0x4cdcc0
mov ebx, dword [edi + 4]
jmp 0x4cdcc3
mov ebx, dword [esi + 4]
test cl, 4
mov dword [esp + 0x1c], ebx
je 0x4cdcd1
fld dword [edi + 8]
jmp 0x4cdcd4
fld dword [esi + 8]
fld dword [esp + 0x24]
fmul dword [esp + 0x18]
inc ecx
add eax, 0xc
cmp ecx, 8
fstp dword [eax - 0x14]
fld dword [esp + 0x28]
fmul dword [esp + 0x18]
fstp dword [eax - 0x10]
fld dword [esp + 0x2c]
fmul dword [esp + 0x18]
fstp dword [eax - 0xc]
fld dword [esp + 0x1c]
fld dword [esp + 0x30]
fmul st(1)
fadd dword [eax - 0x14]
fstp dword [eax - 0x14]
fld dword [esp + 0x34]
fmul st(1)
fadd dword [eax - 0x10]
fstp dword [eax - 0x10]
fld dword [esp + 0x38]
fmul st(1)
fadd dword [eax - 0xc]
fstp dword [eax - 0xc]
fstp st(0)
fld dword [esp + 0x3c]
fmul st(1)
fadd dword [eax - 0x14]
fstp dword [eax - 0x14]
fld dword [esp + 0x40]
fmul st(1)
fadd dword [eax - 0x10]
fstp dword [eax - 0x10]
fld dword [esp + 0x44]
fmul st(1)
fadd dword [eax - 0xc]
fstp dword [eax - 0xc]
fstp st(0)
fld dword [eax - 0x14]
fadd dword [edx]
fstp dword [eax - 0x14]
fld dword [eax - 0x10]
fadd dword [edx + 4]
fstp dword [eax - 0x10]
fld dword [eax - 0xc]
fadd dword [edx + 8]
fstp dword [eax - 0xc]
jl 0x4cdca7
mov esi, dword [esp + 0xc8]
mov edi, dword [esp + 0xc4]
mov ebx, dword [esp + 0xc0]
mov ebp, dword [esp + 0xbc]
push esi
push edi
push ebx
lea edx, [esp + 0x60]
push ebp
lea eax, [esp + 0x58]
push edx
push eax
call fcn.004ac300
push esi
push edi
push ebx
lea ecx, [esp + 0x90]
push ebp
lea edx, [esp + 0x7c]
push ecx
push edx
call fcn.004ac300
push esi
push edi
push ebx
lea eax, [esp + 0x9c]
push ebp
lea ecx, [esp + 0xac]
push eax
push ecx
call fcn.004ac300
add esp, 0x48
lea edx, [esp + 0x48]
lea eax, [esp + 0x60]
push esi
push edi
push ebx
push ebp
push edx
push eax
call fcn.004ac300
push esi
push edi
push ebx
lea ecx, [esp + 0xa8]
push ebp
lea edx, [esp + 0xa0]
push ecx
push edx
call fcn.004ac300
push esi
push edi
push ebx
lea eax, [esp + 0xd8]
push ebp
lea ecx, [esp + 0xc4]
push eax
push ecx
call fcn.004ac300
add esp, 0x48
lea edx, [esp + 0x90]
lea eax, [esp + 0x9c]
push esi
push edi
push ebx
push ebp
push edx
push eax
call fcn.004ac300
push esi
push edi
push ebx
lea ecx, [esp + 0x9c]
push ebp
lea edx, [esp + 0xb8]
push ecx
push edx
call fcn.004ac300
lea eax, [esp + 0x78]
add esp, 0x30
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 4
jmp 0x4cde60
mov eax, dword [esp + 0x10]
push esi
push edi
push ebx
lea ecx, [eax + 0x30]
push ebp
push ecx
push eax
call fcn.004ac300
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add esp, 0x18
add ecx, 0xc
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x4cde5c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
Function at 0x4eb390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x34]
mov eax, esi
imul eax, edi
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
lea ebp, [edx*4 + 0x80]
push ebp
call dword [0x160cc80]
mov ebx, eax
mov eax, ebp
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
push 0
push ebx
call fcn.0045d220
lea ebp, [esi*4]
push ebp
call dword [0x160cc80]
mov ecx, dword [esp + 0x50]
push ebp
push ecx
push eax
mov dword [ebx + 0x78], eax
call fcn.0045d2d0
lea ebp, [edi*4]
push ebp
call dword [0x160cc80]
mov edx, dword [esp + 0x60]
push ebp
add edx, 0x104
mov dword [ebx + 0x7c], eax
push edx
push eax
call fcn.0045d2d0
lea eax, [ebx + 0x20]
lea ecx, [ebx + 0x14]
push eax
push ecx
mov dword [ebx + 0x70], esi
mov dword [ebx + 0x74], edi
mov dword [ebx], 2
call fcn.00469740
add esp, 0x38
test esi, esi
jle 0x4eb4cf
mov eax, dword [esp + 0x38]
lea ebp, [ebx + 0x80]
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], esi
test edi, edi
jle 0x4eb4aa
mov edx, dword [esp + 0x38]
lea ecx, [esi + esi*4]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x10], edi
lea eax, [esi + ecx*2]
shl eax, 2
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x3c]
lea eax, [ebx + 0x20]
push eax
lea eax, [ebx + 0x14]
mov ecx, 0xb
mov edi, ebp
push eax
push ebp
rep movsd dword es:[edi], dword [esi]
call fcn.004697b0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
add esp, 0xc
add ebp, edx
add ecx, 0xb2c
dec eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], eax
jne 0x4eb465
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add edx, 0x2c
add ebp, 0x2c
dec eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jne 0x4eb448
fld dword [ebx + 0x14]
fadd dword [ebx + 0x20]
lea eax, [esp + 0x20]
mov dword [esp + 0x3c], eax
fmul dword [0x54e50c]
fst dword [ebx + 0x2c]
fld dword [ebx + 0x24]
fadd dword [ebx + 0x18]
fmul dword [0x54e50c]
fstp dword [ebx + 0x30]
fld dword [ebx + 0x28]
fadd dword [ebx + 0x1c]
fmul dword [0x54e50c]
fstp dword [ebx + 0x34]
fld dword [ebx + 0x14]
fsub st(1)
fstp dword [esp + 0x20]
fstp st(0)
fld dword [ebx + 0x18]
fsub dword [ebx + 0x30]
fstp dword [esp + 0x24]
fld dword [ebx + 0x1c]
fsub dword [ebx + 0x34]
fstp dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x40]
fld dword [esi]
fld dword [esi + 4]
fxch st(1)
fmul dword [esi]
fxch st(1)
fld dword [esi + 8]
fxch st(1)
fmul dword [esi + 4]
fxch st(1)
fmul dword [esi + 8]
fxch st(2)
faddp st(1)
faddp st(1)
fsqrt
pop esi
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x30]
pop edi
fst dword [ebx + 0x38]
fstp dword [ebx + 0x64]
mov dword [ebx + 0x60], eax
pop esi
mov dword [ebx + 0x58], ecx
mov dword [ebx + 0x5c], edx
mov eax, ebx
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x540da9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x58ac78
cmp edx, dword [eax]
je 0x540dcb
add eax, 8
inc ecx
cmp eax, 0x58ad08
jl 0x540dbc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x58ac78]
jne 0x540ef9
mov eax, dword [0xe6f19c]
cmp eax, 1
je 0x540ed3
test eax, eax
jne 0x540dfc
cmp dword [0x587d0c], 1
je 0x540ed3
cmp edx, 0xfc
je 0x540ef9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x540e33
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0053acf0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0053abb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x540e76
lea eax, [ebp - 0x1a4]
push eax
call fcn.0053abb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x571ef8
push edi
call fcn.005332f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0053acf0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0053ad00
lea eax, [ebp - 0xa0]
push 0x56221c
push eax
call fcn.0053ad00
push dword [esi + 0x58ac7c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0053ad00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00544e7f
add esp, 0x2c
pop edi
jmp 0x540ef9
lea eax, [ebp + 8]
lea esi, [esi + 0x58ac7c]
push 0
push eax
push dword [esi]
call fcn.0053abb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x409960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [0x5bd7c4], 0
mov esi, eax
je 0x4099a3
call fcn.00460a10
mov dword [0x5bd7c4], 0
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x14], 0x10
jb 0x4099ae
mov ecx, dword [ecx]
push ecx
push ecx
mov edx, esi
mov ecx, edi
call fcn.004606c0
add esp, 8
mov dword [0x5bd7c4], eax
test eax, eax
setne al
pop edi
pop esi
pop ebp
ret
Function at 0x40ca50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576980
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5b7ef4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
mov esi, ebx
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x40ca95
mov esi, dword [ebx]
lea edi, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x40cab4
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x40caa3
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + 0x18]
mov esi, dword [eax + 4]
and edi, edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], edi
mov ecx, dword [eax + edi*8]
mov dword [ebp + 0xc], ecx
cmp ecx, esi
je 0x40cad5
mov esi, dword [eax + edi*8 + 4]
mov esi, dword [esi]
mov edx, dword [ebx + 0x10]
cmp esi, ecx
je 0x40cb64
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x40caef
mov eax, dword [esi + 8]
cmp dword [ebx + 0x14], 8
mov edi, ebx
jb 0x40caf9
mov edi, dword [ebx]
mov ecx, dword [ebp + 0xc]
cmp edx, dword [esi + 0x18]
jne 0x40cad8
mov ecx, dword [ebx + 0x10]
mov edx, ecx
test ecx, ecx
je 0x40cb21
sub edi, eax
nop dword [eax]
mov cx, word [edi + eax]
cmp cx, word [eax]
jne 0x40cb5c
add eax, 2
sub edx, 1
jne 0x40cb10
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x14]
dec dword [ecx + 8]
call fcn.00401df0
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 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
mov ecx, dword [ebp + 0xc]
jmp 0x40cad5
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0xc], edi
mov eax, dword [edi]
cmp esi, eax
je 0x40cb91
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
lea ecx, [eax + ebx*8]
mov eax, dword [ecx]
cmp eax, dword [edx + 4]
jne 0x40cbaf
mov dword [ecx], edi
mov eax, dword [edx + 0xc]
mov dword [eax + ebx*8 + 4], edi
jmp 0x40cbd2
cmp eax, esi
jne 0x40cbb7
mov dword [ecx], edi
jmp 0x40cbd2
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x40cbd2
mov eax, dword [edx + 0xc]
lea ecx, [eax + ebx*8]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov ecx, edx
mov dword [ebp - 4], 2
call fcn.0040c5c0
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
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 0x4179d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x599a50
push ecx
movss dword [ebp - 8], xmm2
call dword [sym.imp.msvcrt.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x417a8d
mov esi, dword [sym.imp.msvcrt.dll_fseek]
push 2
push 0
push ebx
call esi
add esp, 0xc
push ebx
call dword [sym.imp.msvcrt.dll_ftell]
add esp, 4
mov dword [ebp - 4], eax
push 0
push 0
push ebx
call esi
mov esi, dword [ebp - 4]
add esp, 0xc
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x417a75
push ebx
push esi
push 1
push edi
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, esi
jne 0x417a75
push ebx
mov byte [esi + edi], 0
call dword [sym.imp.msvcrt.dll_fclose]
movss xmm2, dword [ebp - 8]
add esp, 4
mov ecx, edi
call fcn.004177d0
push edi
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 4
test edi, edi
je 0x417a8d
push edi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452720
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578c70
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5b7ef4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [esi + 0x10], 0
jb 0x45275e
mov eax, dword [esi]
xor ecx, ecx
push ecx
mov word [eax], cx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4528b9
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call edi
test eax, eax
je 0x452831
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0xffffffff
je 0x4528b3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4528b3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
shr eax, 1
xor ecx, ecx
push eax
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.00402e60
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
cmp esi, eax
je 0x4527f0
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00402e60
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4528b3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4528a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4528d5
jmp 0x4528a9
push 1
call edi
test eax, eax
je 0x4528b3
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0xffffffff
je 0x4528b3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4528b3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.0041e220
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.00401730
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x4528b3
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4528a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4528da
push edx
push ecx
call fcn.005348bc
add esp, 8
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00535deb
mov esp, ebp
pop ebp
ret
call fcn.00560be0
call fcn.00560be0
int3
Function at 0x45a3e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579560
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5b7ef4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x45a428
lock inc dword [eax + 8]
mov eax, dword [ebx]
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
lea ecx, [edi + 8]
mov dword [ebp + 8], ecx
lea esi, [ecx + 0xc]
movq xmm0, qword [ebx + 8]
movq qword [ecx], xmm0
mov eax, dword [ebx + 0x10]
mov dword [ecx + 8], eax
lea ecx, [esi + 4]
mov dword [ebp + 8], esi
mov al, byte [ebx + 0x14]
mov byte [esi], al
lea eax, [ebx + 0x18]
push eax
mov dword [ebp - 0x14], ecx
call fcn.00403190
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x1c]
push eax
mov dword [ebp - 0x14], ecx
call fcn.00403190
mov eax, dword [ebx + 0x48]
mov dword [esi + 0x34], eax
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 4
Function at 0x45e2c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x45e2cb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x45e387
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 + 0x5977b0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5977b0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5977b0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5977b0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5977b0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5977b0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5977b0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5977b0]
sub edi, 1
jne 0x45e2e0
pop edi
test esi, esi
je 0x45e3aa
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 + 0x5977b0]
sub esi, 1
jne 0x45e390
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x45e3c0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x5977b0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5977b0]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x45eb80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov ebx, esi
mov dword [ebp - 8], esi
imul ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x45ebc8
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45ebba
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp - 4]
call sub.msvcrt.dll_memcpy
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4606c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579662
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5b7ef4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
push 0x44c
call fcn.0053488c
mov ebx, eax
add esp, 4
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x238], 0xffffffff
mov dword [ebx + 0x23c], 0
mov dword [ebx + 0x240], 0
test esi, esi
je 0x46076d
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460740
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.0057469c
add esp, 4
mov dword [ebx + 0x23c], eax
sub eax, esi
nop dword [eax]
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [eax + esi - 1], cl
test cl, cl
jne 0x460760
mov dword [ebp - 4], 0xffffffff
cmp dword [ebx], 0
jne 0x46083b
cmp dword [ebx + 4], 0xffffffff
jne 0x46083b
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4607a0
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x4607d7
cmp eax, 0x2f
je 0x4607d7
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4607c4
mov eax, dword [0x597628]
mov dword [edi], eax
push 0x20
call fcn.0053488c
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x18], ecx
mov ecx, eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.0045ef10
mov dword [ebx], eax
test eax, eax
jne 0x460837
push ecx
mov ecx, ebx
mov dword [0x5bd758], 0x200
call fcn.00460890
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x460840
mov eax, 0x1000000
mov dword [0x5bd758], eax
test eax, eax
je 0x460865
push ecx
mov ecx, ebx
call fcn.00460890
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 8
call fcn.0053488c
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret