joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416c58
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
push 0x1c
call fcn.0050854a
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esp
push 0
push 0
push 0x1304
push dword [ebp + 0xc]
xor eax, eax
call dword [sym.imp.USER32.dll_SendMessageW]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x416cce
push 0x19
push 0x401e466
push 6
call fcn.00508556
add esp, 0xc
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 8
mov eax, dword [ebp - 4]
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x416e48
mov ebx, dword [ebp - 8]
add ebx, 0x18
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0
fild dword [ebp - 0xc]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fsub qword [0x57c485]
fstp qword [ebp - 0x20]
lea eax, [ebp - 8]
push eax
call fcn.004099aa
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
push dword [ebp - 0x24]
fld qword [ebp - 0x20]
call fcn.004032fc
push eax
push 0x133c
push dword [ebp + 0xc]
xor eax, eax
call dword [sym.imp.USER32.dll_SendMessageW]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x416d67
push 0x101
push 0x401e466
push 6
call fcn.00508556
add esp, 0xc
mov ebx, dword [ebp - 8]
add ebx, 0x18
mov dword [ebp - 0x14], ebx
mov eax, 0x57d7f1
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call fcn.0040beda
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x416d99
push ebx
call fcn.00508550
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fsub qword [0x57c485]
fstp qword [ebp - 0x20]
fild dword [ebp + 0x10]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x20]
fsub qword [ebp - 0x28]
ftst
fnstsw ax
test ah, 1
je 0x416dc8
fchs
fcomp qword [0x57d69c]
fnstsw ax
test ah, 0x41
je 0x416e0f
mov dword [ebp - 0x14], esp
push 5
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x416e0a
push 0x1b3
push 0x401e466
push 6
call fcn.00508556
add esp, 0xc
jmp 0x416e40
mov dword [ebp - 0x14], esp
push 0
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x416e40
push 0x1d3
push 0x401e466
push 6
call fcn.00508556
add esp, 0xc
pop eax
pop ebx
pop ecx
jmp 0x416cec
add esp, 0xc
mov ebx, dword [ebp - 8]
push ebx
call fcn.00508550
add esp, 4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x423315
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push dword [ebp + 8]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x5c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x42336f
push 0x46
push 0x401e233
push 6
call fcn.00508556
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x423386
mov eax, 0x57c471
jmp 0x423469
fild dword [ebp - 8]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fmul qword [0x57c469]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x57c469]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.004032fc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.005091d0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4233dd
push ebx
call fcn.00508550
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
fild dword [ebp - 8]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fadd qword [0x57c485]
fstp qword [ebp - 0x1c]
mov dword [ebp - 0x20], esp
fld qword [ebp - 0x1c]
call fcn.004032fc
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x423409
add eax, 8
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x423433
push 0x165
push 0x401e233
push 6
call fcn.00508556
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42344a
mov eax, 0x57c471
jmp 0x423469
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x423464
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0050854a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x423469
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x42347a
push ebx
call fcn.00508550
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x46c9a4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, str.pDrawWindow
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.0040beda
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x46c9e2
push ebx
call fcn.00508550
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46c9f7
jmp 0x46ca93
mov eax, 0x57d7f1
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call fcn.0040beda
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x46ca1e
push ebx
call fcn.00508550
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.USER32.dll_IsWindow]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x46ca50
push 0xf3
push 0x401ec92
push 6
call fcn.00508556
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x46ca62
jmp 0x46ca93
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x46ca93
push 0x12e
push 0x401ec92
push 6
call fcn.00508556
add esp, 0xc
mov esp, ebp
pop ebp
ret 4

Function at 0x46e2c6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x46e309
push 0x2b
push 0x401e968
push 6
call fcn.00508556
add esp, 0xc
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x57c485]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.004032fc
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x57c469]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x57c469]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.004032fc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.005091d0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x46e380
push ebx
call fcn.00508550
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
mov eax, dword [ebp - 8]
test eax, eax
je 0x46e394
add eax, 8
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x46e3be
push 0xbc
push 0x401e968
push 6
call fcn.00508556
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x46e3d8
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0050854a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x46e3dd
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x46e3ee
push ebx
call fcn.00508550
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4748ba
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, str.pEdit
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.0040beda
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4748f8
push ebx
call fcn.00508550
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47499f
mov eax, 0x57d7f1
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call fcn.0040beda
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x47492f
push ebx
call fcn.00508550
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x474961
push 0xd7
push 0x401ec24
push 6
call fcn.00508556
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x47499f
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x47499f
push 0xfc
push 0x401ec24
push 6
call fcn.00508556
add esp, 0xc
mov eax, str.pListWindow
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.0040beda
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4749c6
push ebx
call fcn.00508550
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x474a6d
mov eax, 0x57d7f1
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call fcn.0040beda
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4749fd
push ebx
call fcn.00508550
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x474a2f
push 0x20f
push 0x401ec24
push 6
call fcn.00508556
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x474a6d
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x474a6d
push 0x234
push 0x401ec24
push 6
call fcn.00508556
add esp, 0xc
mov esp, ebp
pop ebp
ret 4
Function at 0x4de921
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 0x18
jne 0x4dea5c
cmp dword [ebp + 0x10], 0
jne 0x4dea57
mov dword [ebp - 0x10], esp
push str.pItem
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetPropA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4de984
push 0x89
push 0x401ebae
push 6
call fcn.00508556
add esp, 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
push str.pListView
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetPropA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4de9b8
push 0xc8
push 0x401ebae
push 6
call fcn.00508556
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x4de9d6
cmp dword [ebp - 8], 0
je 0x4de9d6
mov eax, 1
jmp 0x4de9db
mov eax, 0
test eax, eax
je 0x4dea57
push 4
push dword [ebp - 4]
call fcn.00409cc5
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4dea57
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
push 0xffffffff
push 1
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push 6
push dword [ebp - 0xc]
call fcn.0040e7e3
jmp 0x4dea97
cmp dword [ebp + 0xc], 8
jne 0x4dea97
mov dword [ebp - 0x10], esp
push 0
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4dea97
push 0x283
push 0x401ebae
push 6
call fcn.00508556
add esp, 0xc
mov eax, 0
jmp 0x4deaa1
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4deac6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
cmp dword [ebp + 0xc], 0xd
jne 0x4deb0a
mov dword [ebp - 4], esp
push 0
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
cmp dword [ebp - 4], esp
je 0x4deb0a
push 0x33
push 0x401ebaf
push 6
call fcn.00508556
add esp, 0xc
mov eax, 0
jmp 0x4deb14
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4df203
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esp
push 0
push 0
push 0x188
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_SendMessageW]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4df263
push 0x19
push 0x401ebc3
push 6
call fcn.00508556
add esp, 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetParent]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4df292
push 0x5d
push 0x401ebc3
push 6
call fcn.00508556
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0x18]
xor eax, eax
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4df2c6
push 0x5d
push 0x401ebc3
push 6
call fcn.00508556
add esp, 0xc
mov dword [ebp - 0x14], esp
push str.pItem
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetPropA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4df2f7
push 0x96
push 0x401ebc3
push 6
call fcn.00508556
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], esp
push str.pListView
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetPropA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4df32b
push 0xd5
push 0x401ebc3
push 6
call fcn.00508556
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
je 0x4df349
cmp dword [ebp - 0xc], 0
je 0x4df349
mov eax, 1
jmp 0x4df34e
mov eax, 0
test eax, eax
je 0x4df3c8
push 4
push dword [ebp - 8]
call fcn.00409cc5
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4df3c8
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
push 1
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push 1
push dword [ebp - 0xc]
push 6
push dword [ebp - 0x10]
call fcn.0040e7e3
mov esp, ebp
pop ebp
ret 8
Function at 0x4f2fce
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], esp
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x4f3027
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4f304e
push 0x19
push 0x401ec0d
push 6
call fcn.00508556
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4f3065
mov eax, 0
jmp 0x4f31b6
push dword [ebp + 0xc]
call fcn.0040eb47
mov dword [ebp - 8], eax
push SysStringLen
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x4f3085
mov eax, 0x57c388
push eax
push 1
mov ebx, 0x194
call fcn.00509200
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], eax
jge 0x4f3180
fild dword [ebp - 8]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x24]
fadd qword [ebp - 0x24]
fstp qword [ebp - 0x2c]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x3c]
fsub qword [ebp - 0x3c]
fstp qword [ebp - 0x44]
mov dword [ebp - 0x48], esp
push 0
lea eax, [ebp - 0x14]
push eax
fld qword [ebp - 0x44]
call fcn.004032fc
push eax
fld qword [ebp - 0x2c]
call fcn.004032fc
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
nop
nop
cmp dword [ebp - 0x48], esp
je 0x4f3118
push 0x1a6
push 0x401ec0d
push 6
call fcn.00508556
add esp, 0xc
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x4f315b
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4f3151
push 0x1e3
push 0x401ec0d
push 6
call fcn.00508556
add esp, 0xc
mov eax, 0
jmp 0x4f31b6
fild dword [ebp - 0x10]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fild dword [ebp - 0x14]
fstp qword [ebp - 0x24]
fadd qword [ebp - 0x24]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.004032fc
mov dword [ebp - 0x10], eax
jmp 0x4f309b
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4f31ac
push 0x264
push 0x401ec0d
push 6
call fcn.00508556
add esp, 0xc
mov eax, 1
jmp 0x4f31b6
mov esp, ebp
pop ebp
ret 8
Function at 0x508b10
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x508ba2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x508b94
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x508b8c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x508b55
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x50b150
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x50b15e
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.0050f600
add esp, 4
test eax, eax
jne 0x50b170
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi]
or eax, 0xffffffff
cmp ecx, 1
je 0x50b18e
cmp ecx, 3
je 0x50b18e
cmp ecx, 2
jne 0x50b19d
mov ecx, dword [esi + 4]
call fcn.0050f450
pop esi
ret
mov esi, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
ret
Function at 0x50bf40
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x50bf55
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push edi
call fcn.0050f600
add esp, 4
test eax, eax
jne 0x50bf68
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [esp + 0x28]
test esi, esi
jg 0x50bf78
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi]
xor ebx, ebx
cmp eax, 1
jne 0x50bfd1
mov edi, dword [edi + 4]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
lea eax, [esp + 0x1c]
push ebx
push eax
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x50bfb3
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
call fcn.0050e610
push ebp
mov ebx, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp eax, 2
jne 0x50c01c
mov edi, dword [edi + 4]
lea edx, [esi + 8]
push edx
call fcn.00508850
mov ebx, eax
add esp, 4
lea ecx, [ebx + 8]
mov dword [ebx], 1
mov dword [ebx + 4], esi
mov eax, dword [edi]
push esi
push ecx
mov ecx, edi
call dword [eax + 0x20]
test eax, eax
jne 0x50c011
push ebx
call main
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
mov dword [ebx + 4], eax
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
cmp eax, 3
jne 0x50c098
mov ebx, dword [edi + 4]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x1c]
push 0
push edx
push esi
push ebp
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x50c065
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [edi + 0x130]
mov eax, dword [esp + 0x1c]
lea ecx, [edi + 0xc]
add edi, 0x2c
push ecx
push edx
push edi
mov esi, eax
push eax
mov eax, dword [esp + 0x20]
push ebp
push eax
call fcn.0050e160
push esi
push ebp
call fcn.0050e610
push ebp
mov ebx, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x24
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
Function at 0x50ca20
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x50ca89
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00508850
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x50cdf0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x50ce0e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x50ce03
pop esi
ret

Function at 0x50d9f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x50da11
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x50da6b
inc edi
cmp edi, esi
jl 0x50da05
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x50daa0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x50da5a
cmp byte [eax], bl
je 0x50da75
cmp byte [eax + 1], bl
je 0x50da7e
cmp byte [eax + 2], bl
je 0x50da88
cmp byte [eax + 3], bl
je 0x50da94
add eax, 4
cmp eax, edi
jb 0x50da31
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4